-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4488143
commit 64a17ca
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Release build | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
name: Linux release build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- run: | | ||
sudo apt-get update | ||
sudo apt-get install -y cmark libasound2-dev libudev-dev | ||
- uses: dtolnay/rust-toolchain@stable | ||
|
||
- run: cargo build --release | ||
|
||
- run: | | ||
mkdir -p tdr2024-linux-amd64/bin | ||
install -s target/release/tdr2024 tdr2024-linux-amd64/bin/tdr2024 | ||
sed -e 's/\.md)/.html)/' LICENSE.md | cmark > tdr2024-linux-amd64/LICENSE.html | ||
sed -e 's/\.md)/.html)/' README.md | cmark > tdr2024-linux-amd64/README.html | ||
tar cf tdr2024-linux-amd64 | xz -T0 -c tdr2024-linux-amd64.tar.xz | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: Linux release build | ||
path: tdr2024-linux-amd64.tar.xz |