File tree 1 file changed +37
-0
lines changed
1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Continuous integration
2
+
3
+ on : push
4
+
5
+ env :
6
+ CARGO_TERM_COLOR : always
7
+
8
+ jobs :
9
+ build_and_test :
10
+ name : Build and test
11
+ runs-on : ubuntu-latest
12
+ container : opensuse/tumbleweed
13
+ strategy :
14
+ fail-fast : false
15
+ matrix :
16
+ toolchain :
17
+ - distribution
18
+ - stable
19
+ - beta
20
+ - nightly
21
+ steps :
22
+ - name : Check out the repository
23
+ uses : actions/checkout@v4
24
+ - name : Install the ${{ matrix.toolchain }} Rust toolchain
25
+ shell : bash
26
+ run : |
27
+ if [ ${{ matrix.toolchain }} == distribution ]; then
28
+ zypper --non-interactive install cargo rust
29
+ else
30
+ zypper --non-interactive install rustup
31
+ rustup update ${{ matrix.toolchain }}
32
+ rustup default ${{ matrix.toolchain }}
33
+ fi
34
+ - name : Build the project
35
+ run : cargo build --verbose
36
+ - name : Run tests
37
+ run : cargo test --verbose
You can’t perform that action at this time.
0 commit comments