Commit 249f2be 1 parent 4c81b9a commit 249f2be Copy full SHA for 249f2be
File tree 1 file changed +49
-0
lines changed
1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Rust CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ build :
13
+
14
+ runs-on : ubuntu-latest
15
+
16
+ strategy :
17
+ matrix :
18
+ rust : [stable, beta, nightly]
19
+ os : [ubuntu-latest, windows-latest, macos-latest]
20
+
21
+ steps :
22
+ - name : Checkout code
23
+ uses : actions/checkout@v3
24
+
25
+ - name : Cache cargo registry
26
+ uses : actions/cache@v3
27
+ with :
28
+ path : |
29
+ ~/.cargo/registry
30
+ ~/.cargo/git
31
+ key : ${{ runner.os }}-cargo-${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
32
+ restore-keys : |
33
+ ${{ runner.os }}-cargo-${{ matrix.rust }}-
34
+
35
+ - name : Set up Rust
36
+ uses : actions-rs/toolchain@v1
37
+ with :
38
+ toolchain : ${{ matrix.rust }}
39
+ profile : minimal
40
+ override : true
41
+
42
+ - name : Install dependencies
43
+ run : cargo fetch
44
+
45
+ - name : Build the project
46
+ run : cargo build --verbose
47
+
48
+ - name : Run tests
49
+ run : cargo test --verbose
You can’t perform that action at this time.
0 commit comments