release v0.8.1 #12
Workflow file for this run
This file contains hidden or 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: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| build: | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: cargo-bins/cargo-binstall@main | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| - name: Setup the build env | |
| run: | | |
| sudo apt-get update && \ | |
| sudo apt install -y podman binutils-aarch64-linux-gnu musl-tools | |
| cargo binstall --no-confirm cross | |
| - name: Build for x86_64 linux gnu | |
| run: | | |
| CROSS_CONTAINER_ENGINE=podman cross build --target x86_64-unknown-linux-musl --release | |
| cp target/x86_64-unknown-linux-musl/release/bluetui bluetui-x86_64-linux-musl | |
| - run: cargo clean | |
| - name: Build for aarch64 linux gnu | |
| run: | | |
| CROSS_CONTAINER_ENGINE=podman cross build --target aarch64-unknown-linux-musl --release | |
| cp target/aarch64-unknown-linux-musl/release/bluetui bluetui-aarch64-linux-musl | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| body: | | |
| [Release.md](${{ github.server_url }}/${{ github.repository }}/blob/master/Release.md) | |
| files: "bluetui*" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |