Skip to content

Commit

Permalink
ci: combine Nix jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Oct 9, 2024
1 parent 0ca309c commit 7b4786e
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,14 @@ jobs:
path: ~/.stack
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.yaml }}-stack

nix-normal:
name: nix build .#normal
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: cachix/install-nix-action@v27
with:
# release-24.05
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/74435c9234c751e6786c5f3fd34ff6b0f0c13bd1.tar.gz

- uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Build
run: nix build .#normal

nix-static:
name: nix build .#static
nix:
name: nix build .#${{ matrix.output }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
include:
- output: normal
- output: static

steps:
- uses: actions/checkout@v4
Expand All @@ -86,4 +75,4 @@ jobs:

- uses: DeterminateSystems/magic-nix-cache-action@v8
- name: Build
run: nix build .#static
run: nix build .#${{ matrix.output }}

0 comments on commit 7b4786e

Please sign in to comment.