Skip to content

ci: build and upload cli binary #34

ci: build and upload cli binary

ci: build and upload cli binary #34

Workflow file for this run

name: Build npm package for jstz CLI
on:
push:
branches: [huanchengchang-jstz-275-1]
tags:
- "*"
jobs:
linux-arm64:
name: Build CLI for Linux Arm64
runs-on: [arm64, linux, nix]
container:
image: rust:alpine
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
targets: wasm32-unknown-unknown
- name: Install dependencies
shell: bash
run: apk add curl make musl-dev libcrypto3 openssl-dev clang gcc wget curl vim musl-dev libstdc++ curl-dev libffi-dev g++ openssl-libs-static
- name: Build
shell: bash
run: make build-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: target/release/jstz
asset_name: jstz_linux_arm64
tag: ${{ github.ref_name }}