feat(cli)!: update to use new chart structure, dusk-2 (#611) #4
Workflow file for this run
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
name: Build Binaries | |
on: | |
# TODO: allow workflow dispatch to specify which binaries to build | |
workflow_dispatch: | |
push: | |
tags: | |
- "**-v[0-9]+.[0-9]+.[0-9]+" | |
- "**-v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+" | |
- "**-v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+" | |
- "**-v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+" | |
jobs: | |
# TODO: Make generic and run on any tagged release | |
upload-cli-binaries: | |
if: startsWith(github.ref, 'refs/tags/cli-v') || github.event_name == 'workflow_dispatch' | |
strategy: | |
matrix: | |
include: | |
- target: x86_64-unknown-linux-gnu | |
os: ubuntu-latest | |
build-tool: cargo | |
- target: aarch64-apple-darwin | |
os: macos-latest | |
build-tool: cargo | |
- target: x86_64-apple-darwin | |
os: macos-latest | |
build-tool: cargo | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: taiki-e/upload-rust-binary-action@v1 | |
with: | |
dry-run: ${{ !startsWith(github.ref, 'refs/tags/cli-v') }} | |
bin: astria-cli | |
# (optional) Target triple, default is host triple. | |
target: ${{ matrix.target }} | |
# (optional) Tool to build binaries (cargo, cross, or cargo-zigbuild) | |
build-tool: ${{ matrix.build-tool }} | |
# (required) GitHub token for uploading assets to GitHub Releases. | |
token: ${{ secrets.GITHUB_TOKEN }} |