Skip to content

Commit d8ba30a

Browse files
Clean up nix CI and add GHC9 build (#3185)
* Clean up nix CI and add GHC9 build * added check shell back * cachix tweak * filter out .github folder from src
1 parent bc49fae commit d8ba30a

File tree

2 files changed

+7
-61
lines changed

2 files changed

+7
-61
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,14 @@ jobs:
1616
ref: ${{ github.event.pull_request.head.sha }}
1717
submodules: recursive
1818

19-
- name: Install Nix
20-
uses: cachix/install-nix-action@v14.1
19+
- name: 'Install Nix'
20+
uses: cachix/install-nix-action@v15
2121
with:
2222
extra_nix_config: |
23-
substituters = http://cache.nixos.org https://hydra.iohk.io
23+
substituters = http://cache.nixos.org https://cache.iog.io
2424
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
25-
install_url: "https://releases.nixos.org/nix/nix-2.3.16/install"
2625
27-
- name: Install Cachix
26+
- name: 'Install Cachix'
2827
uses: cachix/cachix-action@v10
2928
with:
3029
name: runtimeverification
@@ -33,66 +32,12 @@ jobs:
3332
- name: Build
3433
run: nix-build -A kore
3534

36-
nix-shell:
37-
name: 'Nix / Shell'
38-
strategy:
39-
matrix:
40-
os: [ubuntu-latest, macos-latest]
41-
runs-on: ${{ matrix.os }}
42-
steps:
43-
- name: Check out code
44-
uses: actions/[email protected]
45-
with:
46-
# Check out pull request HEAD instead of merge commit.
47-
ref: ${{ github.event.pull_request.head.sha }}
48-
submodules: recursive
49-
50-
- name: Install Nix
51-
uses: cachix/[email protected]
52-
with:
53-
extra_nix_config: |
54-
substituters = http://cache.nixos.org https://hydra.iohk.io
55-
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
56-
install_url: "https://releases.nixos.org/nix/nix-2.3.16/install"
57-
58-
- name: Install Cachix
59-
uses: cachix/cachix-action@v10
60-
with:
61-
name: runtimeverification
62-
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
35+
- name: Build GHC9
36+
run: GC_DONT_GC=1 nix build .#kore-exec-prof
6337

6438
- name: Check shell
6539
run: nix-shell --run "echo OK"
6640

67-
nix-test:
68-
name: 'Nix / Test'
69-
needs: nix-build
70-
strategy:
71-
matrix:
72-
os: [ubuntu-latest, macos-latest]
73-
runs-on: ${{ matrix.os }}
74-
steps:
75-
- name: Check out code
76-
uses: actions/[email protected]
77-
with:
78-
# Check out pull request HEAD instead of merge commit.
79-
ref: ${{ github.event.pull_request.head.sha }}
80-
submodules: recursive
81-
82-
- name: Install Nix
83-
uses: cachix/[email protected]
84-
with:
85-
extra_nix_config: |
86-
substituters = http://cache.nixos.org https://hydra.iohk.io
87-
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
88-
install_url: "https://releases.nixos.org/nix/nix-2.3.16/install"
89-
90-
- name: Install Cachix
91-
uses: cachix/cachix-action@v10
92-
with:
93-
name: runtimeverification
94-
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
95-
9641
- name: Run unit tests
9742
run: nix-build -A project.kore.checks
9843

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
name = "haskell-backend-src";
5353
# make sure we remove all nix files and flake.lock, since any changes to these triggers re-compilation of kore
5454
src = pkgs.nix-gitignore.gitignoreSourcePure [
55+
"./github"
5556
"/nix"
5657
"*.nix"
5758
"*.nix.sh"

0 commit comments

Comments
 (0)