Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 6 additions & 22 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
gh release create ${VERSION} --target ${{ github.sha }}

nix-cache:
name: 'Populate Nix Cache'
name: 'Populate Nix Caches'
strategy:
matrix:
runner: [normal, ARM64]
Expand All @@ -36,37 +36,21 @@ jobs:
ref: ${{ github.event.push.head.sha }}
fetch-depth: 0

- name: 'Build and cache Komet'
- name: 'Build Komet and push to caches'
uses: workflow/nix-shell-action@v3
env:
GC_DONT_GC: 1
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_PUBLIC_TOKEN }}
CACHIX_PUBLIC_TOKEN: ${{ secrets.CACHIX_PUBLIC_TOKEN }}
CACHIX_PRIVATE_KFB_TOKEN: ${{ secrets.CACHIX_PRIVATE_KFB_TOKEN }}
with:
packages: jq
script: |
KOMET=$(nix build --extra-experimental-features 'nix-command flakes' .#komet --json | jq -r '.[].outputs | to_entries[].value')
DRV=$(nix-store --query --deriver ${KOMET})
export CACHIX_AUTH_TOKEN="${CACHIX_PUBLIC_TOKEN}"
nix-store --query --requisites --include-outputs ${DRV} | cachix push k-framework

nix-binary-cache:
name: 'Populate Nix Binary Cache'
strategy:
matrix:
runner: [normal, ARM64]
runs-on: ${{ matrix.runner }}
steps:
- name: 'Check out code'
uses: actions/checkout@v4

- name: 'Publish Komet to k-framework-binary cache'
uses: workflow/nix-shell-action@v3
env:
CACHIX_AUTH_TOKEN: '${{ secrets.CACHIX_PRIVATE_KFB_TOKEN }}'
GC_DONT_GC: '1'
with:
packages: jq
script: |
export PATH="$(nix build github:runtimeverification/kup --no-link --json | jq -r '.[].outputs | to_entries[].value')/bin:$PATH"
export CACHIX_AUTH_TOKEN="${CACHIX_PRIVATE_KFB_TOKEN}"
kup publish k-framework-binary .#komet --keep-days 180
kup publish k-framework-binary .#komet.rust-stellar --keep-days 180

Expand Down
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.82
0.1.83
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "komet"
version = "0.1.82"
version = "0.1.83"
description = "K tooling for the Soroban platform"
requires-python = "~=3.10"
dependencies = [
Expand Down
Loading