File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,20 @@ jobs:
55
55
uses : cachix/cachix-action@v14
56
56
with :
57
57
name : k-framework
58
+ extraPullNames : k-framework-binary
58
59
authToken : ' ${{ secrets.CACHIX_PUBLIC_TOKEN }}'
59
60
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
62
72
63
73
ubuntu-package :
64
74
name : ' Build Ubuntu package'
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ jobs:
114
114
115
115
- name : Build
116
116
run : GC_DONT_GC=1 nix build .#kore-exec .#kore-rpc-booster
117
-
117
+
118
118
- name : Test
119
119
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"
120
120
You can’t perform that action at this time.
0 commit comments