From: Francesco Chemolli <5175948+kinkie@users.noreply.github.com> Date: Sun, 5 May 2024 21:44:52 +0000 (+0000) Subject: CI: Build layers independently to speed up GitHub Actions tests (#1787) X-Git-Tag: SQUID_7_0_1~124 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=45eabfa1155451024d2f574551bc939cd3ee1876;p=thirdparty%2Fsquid.git CI: Build layers independently to speed up GitHub Actions tests (#1787) Adding a second matrix test dimension can decrease testing wall time by about 75% by parallelizing tests --- diff --git a/.github/workflows/default.yaml b/.github/workflows/default.yaml index 06b05e786e..6f4e91053e 100644 --- a/.github/workflows/default.yaml +++ b/.github/workflows/default.yaml @@ -95,6 +95,11 @@ jobs: fail-fast: true matrix: os: [ ubuntu-22.04, macos-14 ] + layer: + - layer-00-default + - layer-01-minimal + - layer-02-maximus + - layer-04-noauth-everything runs-on: ${{ matrix.os }} @@ -122,7 +127,7 @@ jobs: - name: Run build on Linux if: runner.os == 'Linux' - run: ./test-builds.sh + run: ./test-builds.sh ${{ matrix.layer }} - name: Run build on MacOS if: runner.os == 'macOS' @@ -140,7 +145,7 @@ jobs: export CPPFLAGS="-I$HOMEBREW_PREFIX/include${CPPFLAGS:+ $CPPFLAGS}" export LDFLAGS="-L$HOMEBREW_PREFIX/lib${LDFLAGS:+ $LDFLAGS}" export CFLAGS="-Wno-compound-token-split-by-macro${CFLAGS:+ $CFLAGS}" # needed fir ltdl with Xcode - ./test-builds.sh + ./test-builds.sh ${{ matrix.layer }} - name: Publish build logs if: success() || failure()