Skip to content

Commit 3e1f8c8

Browse files
committed
Merge remote-tracking branch 'origin/master' into release
2 parents 1f3643f + 379cb61 commit 3e1f8c8

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,20 @@ jobs:
5555
uses: cachix/cachix-action@v14
5656
with:
5757
name: k-framework
58+
extraPullNames: k-framework-binary
5859
authToken: '${{ secrets.CACHIX_PUBLIC_TOKEN }}'
5960

60-
- name: Build
61-
run: nix build .#kore-exec .#kore-rpc-booster
61+
- name: 'Build and Cache'
62+
uses: workflow/nix-shell-action@v3
63+
env:
64+
GC_DONT_GC: 1
65+
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_PUBLIC_TOKEN }}
66+
with:
67+
packages: jq
68+
script: |
69+
HASKELL_BACKEND=$(nix build --extra-experimental-features 'nix-command flakes' .#kore-exec .#kore-rpc-booster --json | jq -r '.[].outputs | to_entries[].value')
70+
DRV=$(nix-store --query --deriver ${HASKELL_BACKEND})
71+
nix-store --query --requisites --include-outputs ${DRV} | cachix push k-framework-binary
6272
6373
ubuntu-package:
6474
name: 'Build Ubuntu package'

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114

115115
- name: Build
116116
run: GC_DONT_GC=1 nix build .#kore-exec .#kore-rpc-booster
117-
117+
118118
- name: Test
119119
run: GC_DONT_GC=1 nix develop .#cabal --command bash -c "hpack ./booster && hpack dev-tools && cabal update && cabal build all && cabal test --enable-tests --test-show-details=direct kore-test unit-tests"
120120

0 commit comments

Comments
 (0)