Skip to content

ci: build and upload cli binary #3

ci: build and upload cli binary

ci: build and upload cli binary #3

Workflow file for this run

name: Build npm package for jstz CLI
on:
# For manually rebuilding the images
pull_request:
jobs:
build-cli:
name: Build CLI
runs-on: [macos]
steps:
- uses: actions/checkout@v4
- run: nix --version
- name: Format
run: nix --accept-flake-config fmt -- --fail-on-change
- name: Prevent blst
run: nix --accept-flake-config develop -j auto --command sh -c '[ -z "$(cargo tree | grep blst)" ]'
- name: Build
run: nix --accept-flake-config --log-format raw -L build -j auto .#jstz_cli -- --release
- name: Upload CLI binary
id: upload-cli-bin
uses: actions/upload-artifact@v4
with:
name: jstz-cli
path: result/jstz_cli