forked from TeamFlos/phira
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 882 Bytes
/
cargo_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Cargo Test
on:
push: {}
pull_request: {}
jobs:
cargo-test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Prepare
run: |
sudo apt-get update
sudo apt-get install librust-alsa-sys-dev libglib2.0-dev libasound2t64 libatk-adaptor libgail-common libgtk-3-dev
- name: Setup Rust
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
rustup toolchain install nightly-2023-02-01
rustup default nightly-2023-02-01
- name: Cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
cache-all-crates: "true"
- name: Run tests
run: |
cargo test -p phira --no-default-features -- --skip test_parse_chart