Skip to content

Commit

Permalink
modified: .github/workflows/release.yml (#4093)
Browse files Browse the repository at this point in the history
modified:   .github/workflows/test.yml
- Update nix release process for test/release workflows
- Publish release builds to k-framework-binar
- Publish iterative CI builds to k-framework.
- Reduce build times upstream and in CI PR testing.
- Supporting issue of haskell-backend components being built upstream by
  dependents.
  • Loading branch information
F-WRunTime authored Feb 27, 2025
1 parent a06620f commit 379cb61
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,20 @@ jobs:
uses: cachix/cachix-action@v14
with:
name: k-framework
extraPullNames: k-framework-binary
authToken: '${{ secrets.CACHIX_PUBLIC_TOKEN }}'

- name: Build
run: nix build .#kore-exec .#kore-rpc-booster
- name: 'Build and Cache'
uses: workflow/nix-shell-action@v3
env:
GC_DONT_GC: 1
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_PUBLIC_TOKEN }}
with:
packages: jq
script: |
HASKELL_BACKEND=$(nix build --extra-experimental-features 'nix-command flakes' .#kore-exec .#kore-rpc-booster --json | jq -r '.[].outputs | to_entries[].value')
DRV=$(nix-store --query --deriver ${HASKELL_BACKEND})
nix-store --query --requisites --include-outputs ${DRV} | cachix push k-framework-binary
ubuntu-package:
name: 'Build Ubuntu package'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:

- name: Build
run: GC_DONT_GC=1 nix build .#kore-exec .#kore-rpc-booster

- name: Test
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"

Expand Down

0 comments on commit 379cb61

Please sign in to comment.