-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1cbb5d1
commit acd5922
Showing
2 changed files
with
49 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: | ||
Build CLI binary | ||
inputs: | ||
kind: | ||
description: Type of platform and architecture that the binary can run on | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set outputs | ||
id: set_tag | ||
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
- 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 | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_name: huancheng-trili/test-cli | ||
repo_token: ${{ secrets.TEST_RELEASE }} | ||
file: result/bin/jstz | ||
asset_name: jstz_${{ inputs.kind }} | ||
tag: ${{ steps.set_tag.outputs.sha_short }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters