Release v0.6 (#35) #7
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: 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-get install -y \ | |
podman \ | |
qemu-user-static\ | |
pkg-config \ | |
libdbus-1-dev && \ | |
cargo binstall --no-confirm cross | |
- name: Build for x86_64 linux gnu | |
run: | | |
cargo build --release | |
cp target/release/bluetui bluetui-x86_64-linux-gnu | |
- name: Build for aarch64 linux gnu | |
run: | | |
CROSS_CONTAINER_ENGINE=podman cross build --target aarch64-unknown-linux-gnu --release | |
cp target/aarch64-unknown-linux-gnu/release/bluetui bluetui-aarch64-linux-gnu | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
body: | | |
[Release.md](${{ github.server_url }}/${{ github.repository }}/blob/master/Release.md) | |
files: "bluetui*" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |