File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ # yaml-language-server: $schema=https://json.schemastore.org/github-workflow
2
+
3
+ name : msrv
4
+
5
+ # read-only repo token
6
+ # no access to secrets
7
+ on :
8
+ push :
9
+ branches : [main]
10
+ pull_request :
11
+
12
+ env :
13
+ CARGO_TERM_COLOR : always
14
+
15
+ jobs :
16
+ verify-build :
17
+ runs-on : ubuntu-latest
18
+
19
+ steps :
20
+ - name : Install ALSA and Jack dependencies
21
+ run : |
22
+ sudo apt-get update && sudo apt-get install -y libasound2-dev libjack-jackd2-dev cmake
23
+
24
+ - name : Install Rust toolchain
25
+ uses : dtolnay/rust-toolchain@master
26
+ with :
27
+ # Aligned with `rust-version` in `Cargo.toml`
28
+ # The quoting is required, otherwise versions that end with 0 would be interpreted as a number
29
+ toolchain : " 1.70"
30
+
31
+ - name : Check out repository
32
+ uses : actions/checkout@v3
33
+
34
+ - name : Generate Cargo.lock
35
+ run : cargo generate-lockfile
36
+
37
+ - name : Rust Cache
38
+ uses : Swatinem/rust-cache@v2
39
+ with :
40
+ # Distinguished by the action name to avoid sharing!
41
+ shared-key : " msrv"
42
+
43
+ - name : Check
44
+ run : cargo check --verbose --all-targets --all-features
Original file line number Diff line number Diff line change 35
35
# restore cargo cache from previous runs
36
36
- name : Rust Cache
37
37
uses : Swatinem/rust-cache@v2
38
+ with :
39
+ # Distinguished by the action name to avoid sharing!
40
+ shared-key : " rust"
38
41
39
42
# check it builds
40
43
- name : Build
You can’t perform that action at this time.
0 commit comments