Config-options #1593
This file contains hidden or 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: Config-options | |
| 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: | |
| with-external-planarity-bliss: | |
| name: ${{ matrix.bliss }} ${{ matrix.planarity }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| planarity: | |
| - --with-external-planarity | |
| - "" | |
| bliss: | |
| - --with-external-bliss | |
| - "" | |
| exclude: | |
| - planarity: "" | |
| bliss: "" | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Output g++ version . . . | |
| run: g++ --version | |
| - name: Install micromamba environment from environment.yml . . . | |
| uses: mamba-org/setup-micromamba@v3 | |
| with: | |
| environment-name: digraphs | |
| cache-environment: true | |
| create-args: ${{ matrix.bliss && 'bliss' || '' }} ${{ matrix.planarity && 'planarity' || ''}} | |
| - name: Set environment variables . . . | |
| run: | | |
| echo "PKG_CONFIG_PATH=$MAMBA_ROOT_PREFIX/envs/digraphs/lib/pkgconfig:$MAMBA_ROOT_PREFIX/envs/digraphs/share/pkgconfig" >> $GITHUB_ENV | |
| echo "LD_LIBRARY_PATH=$MAMBA_ROOT_PREFIX/envs/digraphs/lib" >> $GITHUB_ENV | |
| echo "CFLAGS=-I$MAMBA_ROOT_PREFIX/envs/digraphs/include" >> $GITHUB_ENV | |
| echo "LDFLAGS=-L$MAMBA_ROOT_PREFIX/envs/digraphs/lib" >> $GITHUB_ENV | |
| - name: "Install GAP . . ." | |
| uses: gap-actions/setup-gap@v3 | |
| with: | |
| gap-version: stable-4.15 | |
| - name: "Install necessary GAP package clones . . ." | |
| run: | | |
| for PKG in https://github.com/digraphs/graphviz.git https://github.com/gap-packages/NautyTracesInterface.git; do | |
| cd ${GAPROOT}/pkg | |
| git clone $PKG | |
| done | |
| - name: "Build additional necessary GAP packages . . ." | |
| run: | | |
| cd ${GAPROOT}/pkg | |
| ../bin/BuildPackages.sh --strict io orb datastructures grape NautyTracesInterface | |
| - name: Build Digraphs . . . | |
| uses: gap-actions/build-pkg@v3 | |
| with: | |
| CONFIGFLAGS: ${{ matrix.bliss }} ${{ matrix.planarity }} | |
| coverage: false | |
| - name: Run Digraphs package's tst/teststandard.g . . . | |
| uses: gap-actions/run-pkg-tests@v4 | |
| with: | |
| coverage: false | |
| all-options: | |
| name: ${{ matrix.debug }} ${{ matrix.warnings }} ${{ matrix.without-intrinsics }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| warnings: | |
| - "--enable-compile-warnings" | |
| - "" | |
| debug: | |
| - "--enable-debug" | |
| - "" | |
| without-intrinsics: | |
| - "--without-intrinsics" | |
| - "" | |
| exclude: | |
| - warnings: "" | |
| debug: "" | |
| without-intrinsics: "" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Output g++ version . . . | |
| run: g++ --version | |
| - name: Install GAP and clone/compile necessary packages . . . | |
| uses: gap-actions/setup-gap@v3 | |
| with: | |
| gap-version: stable-4.15 | |
| - name: "Install necessary package clones" | |
| run: | | |
| for PKG in https://github.com/digraphs/graphviz.git https://github.com/gap-packages/NautyTracesInterface.git; do | |
| cd ${GAPROOT}/pkg | |
| git clone $PKG | |
| done | |
| - name: "Build additional necessary packages" | |
| run: | | |
| cd ${GAPROOT}/pkg | |
| ../bin/BuildPackages.sh --strict io orb datastructures grape NautyTracesInterface | |
| - name: Build Digraphs . . . | |
| uses: gap-actions/build-pkg@v3 | |
| with: | |
| CONFIGFLAGS: ${{ matrix.debug }} ${{ matrix.without-intrinsics }} ${{ matrix.warnings && '--enable-compile-warnings WARNING_CXXFLAGS="-Werror" WARNING_CFLAGS="-Werror"' || '' }} | |
| coverage: false | |
| - name: Run Digraphs package's tst/teststandard.g . . . | |
| uses: gap-actions/run-pkg-tests@v4 | |
| with: | |
| coverage: false |