Skip to content

Commit 69c4fea

Browse files
committed
chore(nix): switch to standard nix pin
+ iohk nix was too slow in ci without caching
1 parent 75d0a9c commit 69c4fea

File tree

4 files changed

+54
-667
lines changed

4 files changed

+54
-667
lines changed

.github/workflows/haskell-nix.yml

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Haskell CI with Nix
1+
name: Nix CI
22

33
on:
44
push:
@@ -10,8 +10,6 @@ permissions:
1010
jobs:
1111
nix-ci:
1212
runs-on: ubuntu-latest
13-
env:
14-
NIX_CONFIG: accept-flake-config = true
1513

1614
steps:
1715
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -25,34 +23,5 @@ jobs:
2523
- name: Enable Nix cache
2624
uses: DeterminateSystems/magic-nix-cache-action@565684385bcd71bad329742eefe8d12f2e765b39 # v13
2725

28-
- name: Show toolchain versions from nix shell
29-
shell: bash
30-
run: |
31-
nix develop --command bash -lc 'ghc --numeric-version'
32-
nix develop --command bash -lc 'cabal --numeric-version'
33-
nix develop --command bash -lc 'stack --numeric-version || true'
34-
nix develop --command bash -lc 'fourmolu --version'
35-
36-
- name: Check formatting
37-
run: nix develop --command make format-check
38-
39-
- name: Check cabal file
40-
run: nix develop --command make cabal-check
41-
42-
- name: Update cabal package index
43-
run: nix develop --command make cabal-update
44-
45-
- name: Configure the build
46-
run: nix develop --command make configure
47-
48-
- name: Build dependencies
49-
run: nix develop --command make deps
50-
51-
- name: Build the package
52-
run: nix develop --command make build
53-
54-
- name: Run tests
55-
run: nix develop --command make test
56-
57-
- name: Build documentation
58-
run: nix develop --command make docs
26+
- name: Build and test
27+
run: nix develop --command make ci

.github/workflows/update-flake.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ permissions:
1313
jobs:
1414
update-flake:
1515
runs-on: ubuntu-latest
16-
env:
17-
NIX_CONFIG: accept-flake-config = true
1816

1917
steps:
2018
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

0 commit comments

Comments
 (0)