From 1cd44f89348fe0e6a51bc5026706ebddac30651b Mon Sep 17 00:00:00 2001 From: jneira Date: Tue, 6 Apr 2021 08:19:16 +0200 Subject: [PATCH] Ignore nix job steps --- .github/workflows/nix.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 0b591ab858..6fb91c9a0d 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -19,7 +19,6 @@ jobs: nix: needs: pre_job - if: ${{ needs.pre_job.outputs.should_skip != 'true' }} runs-on: ${{ matrix.os }} strategy: @@ -29,14 +28,18 @@ jobs: os: [ubuntu-latest, macOS-latest] steps: - - uses: actions/checkout@v2 + - if: ${{ needs.pre_job.outputs.should_skip != 'true' }} + uses: actions/checkout@v2 with: submodules: true - - uses: cachix/install-nix-action@v12 + - if: ${{ needs.pre_job.outputs.should_skip != 'true' }} + uses: cachix/install-nix-action@v12 with: nix_path: nixpkgs=channel:nixos-unstable - - uses: cachix/cachix-action@v8 + - if: ${{ needs.pre_job.outputs.should_skip != 'true' }} + uses: cachix/cachix-action@v8 with: name: haskell-language-server authToken: ${{ secrets.HLS_CACHIX_AUTH_TOKEN }} - - run: nix-shell --argstr compiler ${{ matrix.ghc }} --run "cabal update && cabal build" + - if: ${{ needs.pre_job.outputs.should_skip != 'true' }} + run: nix-shell --argstr compiler ${{ matrix.ghc }} --run "cabal update && cabal build"