Skip to content

Commit 584711b

Browse files
committed
Update rust.yml
1 parent f49de25 commit 584711b

File tree

1 file changed

+32
-31
lines changed

1 file changed

+32
-31
lines changed

.github/workflows/rust.yml

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,38 @@
1-
name: Rust
1+
#https://github.com/bevyengine/bevy_github_ci_template/tree/main
2+
3+
name: CI
24

35
on:
4-
push:
5-
branches: [main]
6-
pull_request:
7-
branches: [main]
6+
push:
7+
branches: [main]
8+
pull_request:
9+
branches: [main]
810

911
env:
10-
CARGO_TERM_COLOR: always
12+
CARGO_TERM_COLOR: always
1113

1214
jobs:
13-
build:
14-
runs-on: ubuntu-latest
15-
timeout-minutes: 30
16-
steps:
17-
- uses: actions/checkout@v4
18-
- name: Cache
19-
uses: actions/cache@v4
20-
with:
21-
path: |
22-
~/.cargo/bin/
23-
~/.cargo/registry/index/
24-
~/.cargo/registry/cache/
25-
~/.cargo/git/db/
26-
target/
27-
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.toml') }}
28-
- name: Install stable toolchain
29-
uses: dtolnay/rust-toolchain@stable
30-
- name: Install Dependencies
31-
# alsa-sys deps: https://github.com/Spotifyd/spotifyd/issues/183#issuecomment-476384541
32-
# libudev-sys: https://github.com/hecrj/coffee/issues/119
33-
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends libasound2-dev libudev-dev
34-
#- name: Build
35-
# run: cargo build --verbose
36-
- name: Run tests
37-
run: cargo test --verbose
15+
# Run cargo test
16+
test:
17+
name: Test Suite
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 30
20+
steps:
21+
- name: Checkout sources
22+
uses: actions/checkout@v4
23+
- name: Cache
24+
uses: actions/cache@v4
25+
with:
26+
path: |
27+
~/.cargo/bin/
28+
~/.cargo/registry/index/
29+
~/.cargo/registry/cache/
30+
~/.cargo/git/db/
31+
target/
32+
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.toml') }}
33+
- name: Install stable toolchain
34+
uses: dtolnay/rust-toolchain@stable
35+
- name: Install Dependencies
36+
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
37+
- name: Run cargo test
38+
run: cargo test

0 commit comments

Comments
 (0)