Skip to content

Commit

Permalink
Fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescarterbell committed Apr 15, 2024
1 parent 6d4de0c commit 05b9ac6
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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

0 comments on commit 05b9ac6

Please sign in to comment.