diff --git a/.github/workflows/upload_binary.yml b/.github/workflows/upload_binary.yml new file mode 100644 index 00000000..86255dbc --- /dev/null +++ b/.github/workflows/upload_binary.yml @@ -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 +