Skip to content

Commit ec08c6d

Browse files
committed
Use IOHK's Hydra cache
1 parent aaf8f5a commit ec08c6d

File tree

2 files changed

+27
-8
lines changed

2 files changed

+27
-8
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,25 @@ on:
44
branches:
55
- master
66
jobs:
7-
tests:
7+
release:
8+
name: 'Release'
89
runs-on: ubuntu-latest
910
steps:
10-
- uses: actions/[email protected]
11+
- name: Check out code
12+
uses: actions/[email protected]
1113
with:
1214
submodules: recursive
13-
- uses: cachix/install-nix-action@v12
14-
- uses: cachix/cachix-action@v8
15+
- name: Install Nix
16+
uses: cachix/install-nix-action@v12
17+
with:
18+
extra_nix_config: |
19+
substituters = http://cache.nixos.org https://hydra.iohk.io
20+
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
21+
- name: Install Cachix
22+
uses: cachix/cachix-action@v8
1523
with:
1624
name: runtimeverification
1725
signingKey: '${{ secrets.RUNTIMEVERIFICATION_CACHIX_SIGNING_KEY }}'
18-
- run: nix-build -A kore -A project.kore.checks
26+
extraPullNames: 'kore'
27+
- name: Build
28+
run: nix-build -A kore -A project.kore.checks

.github/workflows/test.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,29 @@ on:
44
push:
55
jobs:
66
test-nix:
7+
name: 'Nix'
78
runs-on: ubuntu-latest
89
steps:
9-
- uses: actions/[email protected]
10+
- name: 'Check out code'
11+
uses: actions/[email protected]
1012
with:
1113
submodules: recursive
12-
- uses: cachix/install-nix-action@v12
13-
- uses: cachix/cachix-action@v8
14+
- name: Install Nix
15+
uses: cachix/install-nix-action@v12
16+
with:
17+
extra_nix_config: |
18+
substituters = http://cache.nixos.org https://hydra.iohk.io
19+
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
20+
- name: Install Cachix
21+
uses: cachix/cachix-action@v8
1422
with:
1523
name: kore
1624
signingKey: '${{ secrets.KORE_CACHIX_SIGNING_KEY }}'
1725
- run: nix-build --arg checkMaterialization true -A kore -A project.kore.checks
1826
- run: nix-shell --run "echo OK"
1927

2028
test-cabal:
29+
name: 'Cabal'
2130
runs-on: ubuntu-latest
2231
steps:
2332
- uses: actions/[email protected]

0 commit comments

Comments
 (0)