-
-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (42 loc) · 1.24 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
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 }}