Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
This commit attempts to add the proper parent directory for the alsa system library to the $PKG_CONFIG_PATH environment variable to allow the GitHub Runner to build the project successfully.
  • Loading branch information
joculatrix authored Sep 11, 2024
1 parent 2d046ca commit f3cec41
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@ jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Rust toolchain
run: rustup toolchain install stable --profile minimal
- name: Install alsa
run: sudo apt-get install -yqq alsa
- name: Set PKG_CONFIG_PATH
run: echo "PKG_CONFIG_PATH='$(dpkg -L alsa | egrep alsa.pc -m 1 -q | sed -n 's/\/alsa/pc//'):$PKG_CONFIG_PATH'" >> "$GITHUB_ENV"
- name: Build
run: cargo build --verbose
- name: Run tests
Expand Down

0 comments on commit f3cec41

Please sign in to comment.