|
| 1 | +name: "GAP" |
| 2 | +on: |
| 3 | + workflow_dispatch: |
| 4 | + pull_request: |
| 5 | + push: |
| 6 | + branches: |
| 7 | + - main |
| 8 | + - stable-*.* |
| 9 | + schedule: |
| 10 | + # Every day at 3:30 AM UTC |
| 11 | + - cron: '30 3 * * *' |
| 12 | + |
| 13 | +env: |
| 14 | + DIGRAPHS_LIB: digraphs-lib-0.6 |
| 15 | + |
| 16 | +jobs: |
| 17 | + test-unix: |
| 18 | + name: "${{ matrix.os }}${{ matrix.ABI }} / GAP ${{ matrix.gap-branch }}" |
| 19 | + runs-on: "${{ matrix.os }}-latest" |
| 20 | + strategy: |
| 21 | + fail-fast: false |
| 22 | + matrix: |
| 23 | + os: |
| 24 | + - ubuntu |
| 25 | + gap-branch: |
| 26 | + - master |
| 27 | + - stable-4.11 |
| 28 | + - stable-4.12 |
| 29 | + - stable-4.13 |
| 30 | + ABI: [''] |
| 31 | + pkgs-to-clone: |
| 32 | + - NautyTracesInterface |
| 33 | + |
| 34 | + include: |
| 35 | + - gap-branch: master |
| 36 | + os: macos |
| 37 | + pkgs-to-clone: "NautyTracesInterface" |
| 38 | + - gap-branch: master |
| 39 | + os: ubuntu |
| 40 | + ABI: 32 |
| 41 | + |
| 42 | + steps: |
| 43 | + - uses: actions/checkout@v4 |
| 44 | + - name: "Install dependencies" |
| 45 | + if: ${{ runner.os == 'macOS' }} |
| 46 | + run: brew install automake |
| 47 | + - name: "Install GAP and clone/compile necessary packages" |
| 48 | + uses: gap-actions/setup-gap@v2 |
| 49 | + with: |
| 50 | + GAP_PKGS_TO_CLONE: "${{ matrix.pkgs-to-clone }} digraphs/graphviz" |
| 51 | + GAP_PKGS_TO_BUILD: "io orb profiling grape NautyTracesInterface datastructures" |
| 52 | + GAPBRANCH: ${{ matrix.gap-branch }} |
| 53 | + ABI: ${{ matrix.ABI }} |
| 54 | + - name: "Build Digraphs" |
| 55 | + uses: gap-actions/build-pkg@v1 |
| 56 | + with: |
| 57 | + ABI: ${{ matrix.ABI }} |
| 58 | + - name: "Install digraphs-lib" |
| 59 | + run: | |
| 60 | + curl --retry 5 -L -O "https://digraphs.github.io/Digraphs/${{ env.DIGRAPHS_LIB }}.tar.gz" |
| 61 | + tar xf "${{ env.DIGRAPHS_LIB }}.tar.gz" |
| 62 | + - name: "Run DigraphsTestInstall" |
| 63 | + uses: gap-actions/run-pkg-tests@v2 |
| 64 | + with: |
| 65 | + GAP_TESTFILE: "tst/github_actions/install.g" |
| 66 | + - name: "Run DigraphsTestStandard" |
| 67 | + uses: gap-actions/run-pkg-tests@v2 |
| 68 | + with: |
| 69 | + GAP_TESTFILE: "tst/github_actions/standard.g" |
| 70 | + - name: "Run DigraphsTestManualExamples" |
| 71 | + uses: gap-actions/run-pkg-tests@v2 |
| 72 | + with: |
| 73 | + GAP_TESTFILE: "tst/github_actions/examples.g" |
| 74 | + - name: "Run DigraphsTestExtreme" |
| 75 | + uses: gap-actions/run-pkg-tests@v2 |
| 76 | + with: |
| 77 | + GAP_TESTFILE: "tst/github_actions/extreme.g" |
| 78 | + - uses: gap-actions/process-coverage@v2 |
| 79 | + - uses: codecov/codecov-action@v3 |
| 80 | + |
| 81 | + test-cygwin: |
| 82 | + name: "cygwin / GAP master" |
| 83 | + runs-on: windows-2019 |
| 84 | + env: |
| 85 | + CHERE_INVOKING: 1 |
| 86 | + steps: |
| 87 | + - uses: actions/checkout@v4 |
| 88 | + - uses: gap-actions/setup-cygwin@v1 |
| 89 | + - uses: gap-actions/setup-gap@cygwin-v2 |
| 90 | + with: |
| 91 | + GAP_PKGS_TO_BUILD: "io orb profiling grape datastructures" |
| 92 | + GAP_PKGS_TO_CLONE: "digraphs/graphviz" |
| 93 | + - uses: gap-actions/build-pkg@cygwin-v1 |
| 94 | + - name: "Install digraphs-lib" |
| 95 | + run: | |
| 96 | + curl --retry 5 -L -O "https://digraphs.github.io/Digraphs/${{ env.DIGRAPHS_LIB }}.tar.gz" |
| 97 | + tar xf "${{ env.DIGRAPHS_LIB }}.tar.gz" |
| 98 | + - uses: gap-actions/run-pkg-tests@cygwin-v2 |
| 99 | + - uses: gap-actions/process-coverage@cygwin-v2 |
| 100 | + - uses: codecov/codecov-action@v3 |
| 101 | + |
| 102 | + with-external-planarity-bliss: |
| 103 | + runs-on: "ubuntu-latest" |
| 104 | + env: |
| 105 | + GAPBRANCH: "stable-4.12" |
| 106 | + ABI: 64 |
| 107 | + PKG_CONFIG_PATH: "/home/runner/micromamba/envs/digraphs/lib/pkgconfig:/home/runner/micromamba/envs/digraphs/share/pkgconfig/" |
| 108 | + LD_LIBRARY_PATH: "/home/runner/micromamba/envs/digraphs/lib" |
| 109 | + CFLAGS: "-I/home/runner/micromamba/envs/digraphs/include" |
| 110 | + LDFLAGS: "-L/home/runner/micromamba/envs/digraphs/lib" |
| 111 | + defaults: |
| 112 | + run: |
| 113 | + shell: bash -l {0} |
| 114 | + steps: |
| 115 | + - uses: actions/checkout@v4 |
| 116 | + - name: "Install micromamba environment from environment.yml . . ." |
| 117 | + uses: mamba-org/setup-micromamba@v1 |
| 118 | + with: |
| 119 | + environment-file: environment.yml |
| 120 | + cache-environment: true |
| 121 | + - name: "Activate \"digraphs\" environment . . ." |
| 122 | + run: micromamba activate digraphs |
| 123 | + - name: "Install GAP and clone/compile necessary packages" |
| 124 | + uses: gap-actions/setup-gap@v2 |
| 125 | + with: |
| 126 | + GAP_PKGS_TO_BUILD: "io orb profiling grape datastructures" |
| 127 | + GAP_PKGS_TO_CLONE: "digraphs/graphviz" |
| 128 | + - name: "Build Digraphs" |
| 129 | + uses: gap-actions/build-pkg@v1 |
| 130 | + with: |
| 131 | + CONFIGFLAGS: --with-external-planarity --with-external-bliss |
| 132 | + - name: "Run Digraphs package's tst/teststandard.g" |
| 133 | + uses: gap-actions/run-pkg-tests@v2 |
0 commit comments