File tree 1 file changed +50
-0
lines changed
1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Rust
2
+ on :
3
+ pull_request :
4
+ branches : [main]
5
+ paths-ignore :
6
+ - " README.md"
7
+ env :
8
+ CARGO_TERM_COLOR : always
9
+ jobs :
10
+ build :
11
+ name : Build Spin
12
+ runs-on : ${{ matrix.config.os }}
13
+ strategy :
14
+ matrix :
15
+ config :
16
+ - {
17
+ os : " ubuntu-latest" ,
18
+ platformAgnosticChecks : true,
19
+ }
20
+ - {
21
+ os : " macos-latest" ,
22
+ }
23
+ steps :
24
+ - uses : actions/checkout@v2
25
+
26
+ - name : Install latest Rust stable toolchain
27
+ uses : actions-rs/toolchain@v1
28
+ with :
29
+ toolchain : stable
30
+ default : true
31
+ components : clippy, rustfmt
32
+
33
+ - name : " Install Wasm Rust target"
34
+ run : rustup target add wasm32-wasi
35
+
36
+ - uses : Swatinem/rust-cache@v1
37
+
38
+ - name : Lint
39
+ if : ${{ matrix.config.platformAgnosticChecks }}
40
+ run :
41
+ make lint
42
+
43
+ - name : Cargo Build
44
+ run : cargo build --release
45
+
46
+ - name : Cargo Test
47
+ run : |
48
+ make test-unit
49
+ env :
50
+ RUST_LOG : spin=trace
You can’t perform that action at this time.
0 commit comments