-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (37 loc) · 1.15 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
---
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
components: clippy rustfmt
targets: aarch64-unknown-linux-musl
- name: Install the dependencies
run: |
sudo apt update && \
sudo apt install -y podman binutils-aarch64-linux-gnu musl-tools && \
cargo binstall --no-confirm cross
- name: Building
run: |
CROSS_CONTAINER_ENGINE=podman cross build --target=aarch64-unknown-linux-musl --release
cp target/aarch64-unknown-linux-musl/release/tegratop tegratop-linux-arm64
aarch64-linux-gnu-strip tegratop-linux-arm64
- name: Release
uses: softprops/action-gh-release@v1
with:
body: |
[Release.md](${{ github.server_url }}/${{ github.repository }}/blob/master/Release.md)
files: "tegratop*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}