Skip to content

Commit

Permalink
Inlince cabal update and command
Browse files Browse the repository at this point in the history
We bootstrap nix once for both update and build and spare a few seconds
  • Loading branch information
pgrange committed May 17, 2023
1 parent 31e4bda commit 30f5c21
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,9 @@ jobs:
restore-keys: |
cabal-${{ runner.os }}-${{ hashFiles('cabal.project', 'default.nix', 'shell.nix') }}
- name: 🧰 Prepare tools
run: |
nix develop .#ci --command bash -c 'cabal update'
- name: 🔨 Build
run: |
nix develop .#ci --command bash -c 'cabal build ${{ matrix.package }}'
nix develop .#ci --command bash -c 'cabal update && cabal build ${{ matrix.package }}'
- name: ❓ Test
if: ${{ matrix.package != 'hydra-tui' }}
Expand Down Expand Up @@ -265,13 +261,9 @@ jobs:
key: |
cabal-${{ runner.os }}-${{ hashFiles('cabal.project', 'default.nix', 'shell.nix') }}
- name: 🧰 Prepare tools
run: |
nix develop .#ci --command bash -c 'cabal update'
- name: 📈 Benchmark
run: |
nix develop .#ci --command bash -c 'cabal bench ${{ matrix.bench }} --benchmark-options "${{ matrix.options }}"'
nix develop .#ci --command bash -c 'cabal update && cabal bench ${{ matrix.bench }} --benchmark-options "${{ matrix.options }}"'
- name: 📚 Documentation (Haddock)
run: |
Expand Down

0 comments on commit 30f5c21

Please sign in to comment.