File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff 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'
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments