Skip to content

Commit

Permalink
add workflow (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
warittornc authored Oct 15, 2024
1 parent a448570 commit df1041b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/upload_binary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Upload binary

on:
release:
types:
- created

jobs:
upload-assets:
strategy:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest, target: x86_64-unknown-linux-gnu}
- {os: ubuntu-latest, target: aarch64-unknown-linux-gnu}
- {os: macos-latest, target: x86_64-apple-darwin}
- {os: macos-latest, target: aarch64-apple-darwin}
runs-on: ${{ matrix.config.os }}
steps:
- uses: actions/checkout@v4
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: bothan
target: ${{ matrix.config.target }}
tar: unix
zip: unix
archive: $bin-$tag-$target
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_PROFILE_RELEASE_LTO: true

0 comments on commit df1041b

Please sign in to comment.