Skip to content

Commit

Permalink
ci: build and upload cli binary
Browse files Browse the repository at this point in the history
  • Loading branch information
huancheng-trili committed Jan 21, 2025
1 parent 9fa6758 commit 2498633
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/cli-npm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,27 @@ name: Build npm package for jstz CLI

on:
push:
branches: [huanchengchang-jstz-275-1]
tags:
- "*"

jobs:
mac:
name: Build CLI for MacOS Arm64
runs-on: macos
linux-arm64:
name: Build CLI for Linux Arm64
runs-on: [arm64, linux, nix]
steps:
- uses: jstz-dev/jstz/.github/actions/build-cli@main
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
platform: macos
arch: arm64
repo_token: ${{ secrets.GITHUB_TOKEN }}
linux-amd64:
name: Build CLI for Linux AMD64
runs-on: [x86_64, linux, nix]
steps:
- uses: jstz-dev/jstz/.github/actions/build-cli@main
targets: [wasm32-unknown-unknown, aarch64-unknown-linux-musl]
- name: Build
shell: bash
run: make build-cli
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
platform: linux
arch: amd64
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_name: huancheng-trili/test-cli
repo_token: ${{ secrets.TEST_RELEASE }}
file: target/release/jstz
asset_name: jstz_linux_arm64
tag: ${{ github.ref_name }}

0 comments on commit 2498633

Please sign in to comment.