Fix pipeline #2
Workflow file for this run
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
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: 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: Get Dependency | |
run: | | |
cargo install cargo-release | |
- name: Login | |
env: # Or as an environment variable | |
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }} | |
run: | | |
cargo login $CARGO_TOKEN | |
- name: Publish | |
run: | | |
cargo release publish \ | |
--workspace | |
--execute | |
--all-features |