-
Notifications
You must be signed in to change notification settings - Fork 66
114 lines (110 loc) · 3.93 KB
/
os.yml
File metadata and controls
114 lines (110 loc) · 3.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: OS
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- stable-*.*
schedule:
# Every day at 3:30 AM UTC
- cron: 30 3 * * *
concurrency:
# Group by workflow and ref; the last component ensures that for pull requests
# we limit to one concurrent job, but for the main/stable branches we don't
group: ${{ github.workflow }}-${{ github.ref }}-${{ (github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/heads/stable-')) || github.run_number }}
# Only cancel intermediate pull request builds
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
test:
name: ${{ matrix.os }}${{ matrix.ABI }} / GAP stable-4.15
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu
ABI: 32
pkgs-to-clone: https://github.com/digraphs/graphviz.git
pkgs-to-build: io orb datastructures grape profiling
- os: macos
ABI: 64
pkgs-to-clone: https://github.com/digraphs/graphviz.git https://github.com/gap-packages/NautyTracesInterface.git
pkgs-to-build: io orb datastructures grape profiling NautyTracesInterface
- os: windows
ABI: 64
pkgs-to-clone: https://github.com/digraphs/graphviz.git https://github.com/gap-packages/NautyTracesInterface.git
pkgs-to-build: io orb datastructures grape profiling NautyTracesInterface
steps:
- uses: actions/checkout@v6
- uses: gap-actions/setup-cygwin@v2
if: ${{ runner.os == 'Windows' }}
- name: Output g++ version . . .
run: g++ --version
- name: Install macOS dependencies . . .
if: ${{ runner.os == 'macOS' }}
run: brew install automake
- name: "Install 32-bit packages . . ."
if: ${{ matrix.ABI == '32' }}
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
packages=(
libgmp-dev:i386
libreadline-dev:i386
zlib1g-dev:i386
gcc-multilib
g++-multilib
)
sudo apt-get install "${packages[@]}"
- name: "Install GAP . . ."
uses: gap-actions/setup-gap@v3
env:
ABI: ${{ matrix.ABI }}
with:
gap-version: stable-4.15
- name: "Install necessary GAP package clones . . ."
shell: bash
run: |
for PKG in ${{ matrix.pkgs-to-clone }}; do
cd ${GAPROOT}/pkg
git clone $PKG
done
- name: "Build additional necessary GAP packages . . ."
shell: bash
env:
ABI: ${{ matrix.ABI }}
run: |
cd ${GAPROOT}/pkg
../bin/BuildPackages.sh --strict ${{ matrix.pkgs-to-build }}
- name: Build Digraphs . . .
uses: gap-actions/build-pkg@v2
env:
ABI: ${{ matrix.ABI }}
with:
ABI: ${{ matrix.ABI }}
- name: Install digraphs-lib . . .
run: git clone https://github.com/digraphs/digraphs-lib.git
- name: Run DigraphsTestInstall . . .
uses: gap-actions/run-pkg-tests@v4
with:
testfile: tst/github_actions/install.g
- name: Run DigraphsTestStandard . . .
uses: gap-actions/run-pkg-tests@v4
with:
testfile: tst/github_actions/standard.g
- name: Run DigraphsTestManualExamples . . .
uses: gap-actions/run-pkg-tests@v4
with:
testfile: tst/github_actions/examples.g
- name: Run DigraphsTestExtreme . . .
uses: gap-actions/run-pkg-tests@v4
if: ${{ runner.os != 'Windows' }}
with:
testfile: tst/github_actions/extreme.g
- uses: gap-actions/process-coverage@v3
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
# codecov/codecov-action seems unreliable on Windows
fail_ci_if_error: ${{ runner.os != 'Windows' }}