From 05b9ac616d010b770ab76f96fc68a9b3e12dfa29 Mon Sep 17 00:00:00 2001 From: James Bell Date: Mon, 15 Apr 2024 19:44:03 -0400 Subject: [PATCH] Fix github actions --- .github/workflows/release.yaml | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..9615b60 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,43 @@ +name: Release + +on: + push: + tags: + - '*' + +env: + add_binaries_to_github_release: true + use_git_lfs: true + + +jobs: + + # Build for Linux + release-linux: + runs-on: ubuntu-latest + + steps: + - uses: olegtarasov/get-tag@v2.1.2 + id: get_version + - uses: actions/checkout@v4 + with: + lfs: ${{ env.use_git_lfs }} + - uses: dtolnay/rust-toolchain@stable + with: + targets: x86_64-unknown-linux-gnu + - name: install dependencies + run: | + sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev + + - name: Test + run: | + cargo test --release --target x86_64-unknown-linux-gnu + + - name: Build + run: | + cargo build --release --target x86_64-unknown-linux-gnu + + - name: Publish + run: | + cargo release release \ + --workspace