diff --git a/.github/workflows/Cabal-Linux.yml b/.github/workflows/Cabal-Linux.yml index 7e06c37e..276cb1ca 100644 --- a/.github/workflows/Cabal-Linux.yml +++ b/.github/workflows/Cabal-Linux.yml @@ -17,11 +17,11 @@ jobs: continue-on-error: true strategy: matrix: - packageRoots: [ ./hnix-store-core, ./hnix-store-remote ] + packageRoot: [ hnix-store-core, hnix-store-remote ] ghc: [ "8.10", "8.4" ] defaults: run: - working-directory: "${{ matrix.packageRoots }}" + working-directory: "./${{ matrix.packageRoot }}" steps: - uses: actions/checkout@v2 - name: "Cache of ~/.cabal/packages, ~/.cabal/store and dist-newstyle" @@ -37,6 +37,11 @@ jobs: ghc-version: ${{ matrix.ghc }} - name: "Install additional system packages" run: sudo apt install libsodium-dev - - run: "cabal v2-configure --disable-optimization --enable-tests --enable-deterministic" - - run: "cabal v2-build" - - run: "cabal v2-test" + - run: cabal v2-configure --disable-optimization --enable-tests --enable-deterministic + if: matrix.packageRoot == 'hnix-store-core' + - run: | + cabal v2-configure --disable-optimization --enable-tests --enable-deterministic \ + -f io-testsuite # Enable the Store-remote test suite + if: matrix.packageRoot == 'hnix-store-remote' + - run: cabal v2-build + - run: cabal v2-test diff --git a/.github/workflows/On-Release-Cabal-Linux.yml b/.github/workflows/On-Release-Cabal-Linux.yml index 3589b7d0..d00c4c58 100644 --- a/.github/workflows/On-Release-Cabal-Linux.yml +++ b/.github/workflows/On-Release-Cabal-Linux.yml @@ -10,14 +10,15 @@ jobs: build10: name: "GHC" runs-on: ubuntu-latest + continue-on-error: true strategy: matrix: - packageRoots: [ ./hnix-store-core, ./hnix-store-remote ] + packageRoot: [ hnix-store-core, hnix-store-remote ] # Since CI by default tests boundary GHCs, test middle versions of GHCs ghc: [ "8.8", "8.6"] defaults: run: - working-directory: "${{ matrix.packageRoots }}" + working-directory: "./${{ matrix.packageRoot }}" steps: - uses: actions/checkout@v2 with: @@ -39,5 +40,10 @@ jobs: - name: "Install Nix" uses: cachix/install-nix-action@v12 - run: cabal v2-configure --disable-optimization --enable-tests --enable-deterministic + if: matrix.packageRoot == 'hnix-store-core' + - run: | + cabal v2-configure --disable-optimization --enable-tests --enable-deterministic \ + -f io-testsuite # Enable the Store-remote test suite + if: matrix.packageRoot == 'hnix-store-remote' - run: cabal v2-build - run: cabal v2-test