Update .forgejo/workflows/build.yml
All checks were successful
Continuous integration / Build and test (push) Successful in 40s
All checks were successful
Continuous integration / Build and test (push) Successful in 40s
This commit is contained in:
parent
0ab065ea3e
commit
90fd8fee9f
1 changed files with 16 additions and 4 deletions
|
@ -7,9 +7,21 @@ jobs:
|
|||
name: Build and test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: apt update
|
||||
- run: apt install libasound2-dev libdbus-1-dev libpulse0 -y
|
||||
- name: Install APT dependencies
|
||||
run: apt update && apt install libasound2-dev libdbus-1-dev libpulse0 -y
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://github.com/dtolnay/rust-toolchain@stable
|
||||
- run: cargo build --verbose --all-features
|
||||
- run: cargo test --verbose --all-features
|
||||
- name: Cache Cargo dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Build
|
||||
run: cargo build --all-features
|
||||
- name: Test
|
||||
run: cargo test --all-features
|
Loading…
Reference in a new issue