File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -584,6 +584,8 @@ jobs:
584584 container :
585585 - id : debian:bullseye
586586 - id : debian:bookworm
587+ - id : nixos/nix:latest
588+ nix_shell : ' nix-shell -p python3 gcc gnumake perl'
587589 name : Compatibility tests (${{ matrix.container.id }})
588590 runs-on : ubuntu-latest
589591 container :
@@ -613,14 +615,20 @@ jobs:
613615 with :
614616 sudo : " "
615617 - name : make quickcheck
618+ shell : bash
616619 run : |
617- OPT=0 make quickcheck
618- make clean >/dev/null
619- OPT=1 make quickcheck
620+ if [ -n "${{ matrix.container.nix_shell }}" ]; then
621+ ${{ matrix.container.nix_shell }} --run "CC=gcc OPT=0 make quickcheck && make clean >/dev/null && CC=gcc OPT=1 make quickcheck"
622+ else
623+ CC=gcc OPT=0 make quickcheck
624+ make clean >/dev/null
625+ CC=gcc OPT=1 make quickcheck
626+ fi
620627 - name : Functional Tests
621628 uses : ./.github/actions/multi-functest
622629 with :
623630 nix-shell : " "
631+ custom_shell : ${{ matrix.container.nix_shell && format('{0} --run \"bash -e {{0}}\"', matrix.container.nix_shell) || 'bash' }}
624632 gh_token : ${{ secrets.AWS_GITHUB_TOKEN }}
625633 ec2_compatibilitytests :
626634 strategy :
You can’t perform that action at this time.
0 commit comments