From cdcbe0b88cb37d0558e49ca429531e71bce31d06 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Sun, 7 Jan 2024 13:32:04 +0000 Subject: [PATCH] workflows: basic release build --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..de8b114 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +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 libasound2-dev + + - uses: dtolnay/rust-toolchain@stable + + - run: cargo build --release + + - uses: actions/upload-artifact@v3 + with: + name: Linux release build + path: target/release/tdr2024