We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c11f3c commit 54ca5aeCopy full SHA for 54ca5ae
.github/workflows/build_and_test.yml
@@ -0,0 +1,39 @@
1
+name: Build And Test
2
+
3
+on: [push]
4
5
+env:
6
+ CARGO_TERM_COLOR: always
7
+ CARGOFLAGS: --workspace --all-targets --all-features --release
8
9
+jobs:
10
+ build:
11
+ name: Compile code
12
+ runs-on: ubicloud-standard-30
13
14
+ steps:
15
+ - uses: actions/checkout@v4
16
17
+ - name: Save build artifacts
18
+ uses: Swatinem/rust-cache@v2
19
+ with:
20
+ shared-key: "build"
21
22
+ - name: Compile
23
+ run: cargo build $CARGOFLAGS --verbose
24
25
+ test:
26
+ name: Test code
27
28
+ needs: build
29
30
31
32
33
+ - name: Restore cached build artifacts
34
35
36
37
38
+ - name: Run tests
39
+ run: cargo test $CARGOFLAGS
0 commit comments