Refactor CI #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Core" | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
- stable-*.* | |
schedule: | |
# Every day at 3:30 AM UTC | |
- cron: '30 3 * * *' | |
env: | |
DIGRAPHS_LIB: digraphs-lib-0.6 | |
jobs: | |
test-unix: | |
name: "Ubuntu / GAP ${{ matrix.gap-branch }} / ${{ matrix.only-needed && 'only-needed' || 'needed+suggested' }}" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
gap-branch: | |
- master | |
- stable-4.10 | |
- stable-4.11 | |
- stable-4.12 | |
- stable-4.13 | |
pkgs-to-clone: | |
- NautyTracesInterface | |
only-needed: | |
- true | |
- false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Install GAP and clone/compile necessary packages" | |
uses: gap-actions/setup-gap@v2 | |
with: | |
GAP_PKGS_TO_CLONE: "${{ matrix.pkgs-to-clone }}" | |
GAP_PKGS_TO_BUILD: "io orb profiling grape NautyTracesInterface datastructures" | |
GAPBRANCH: ${{ matrix.gap-branch }} | |
- name: "Build Digraphs" | |
uses: gap-actions/build-pkg@v1 | |
- name: "Install digraphs-lib" | |
run: | | |
curl --retry 5 -L -O "https://digraphs.github.io/Digraphs/${{ env.DIGRAPHS_LIB }}.tar.gz" | |
tar xf "${{ env.DIGRAPHS_LIB }}.tar.gz" | |
- name: "Clone datastructures v0.3.0" | |
if: ${{ matrix.gap-branch == 'stable-4.10' }} | |
run: | | |
rm -rf $HOME/gap/pkg/datastructures | |
cd $HOME/gap/pkg/ | |
git clone https://github.com/gap-packages/datastructures.git datastructures | |
cd datastructures | |
git checkout v0.3.0 | |
./configure | |
make | |
- name: "Run DigraphsTestInstall" | |
uses: gap-actions/run-pkg-tests@v2 | |
with: | |
NO_COVERAGE: true | |
GAP_TESTFILE: "tst/github_actions/install.g" | |
only-needed: ${{ matrix.only-needed }} | |
- name: "Run DigraphsTestStandard" | |
uses: gap-actions/run-pkg-tests@v2 | |
with: | |
NO_COVERAGE: true | |
GAP_TESTFILE: "tst/github_actions/standard.g" | |
only-needed: ${{ matrix.only-needed }} | |
- name: "Run DigraphsTestManualExamples" | |
uses: gap-actions/run-pkg-tests@v2 | |
with: | |
NO_COVERAGE: true | |
GAP_TESTFILE: "tst/github_actions/examples.g" | |
only-needed: ${{ matrix.only-needed }} | |
- name: "Run DigraphsTestExtreme" | |
uses: gap-actions/run-pkg-tests@v2 | |
with: | |
NO_COVERAGE: true | |
GAP_TESTFILE: "tst/github_actions/extreme.g" | |
only-needed: ${{ matrix.only-needed }} | |