Spaces:
Runtime error
Runtime error
neon_arch
commited on
Commit
•
a40ade2
1
Parent(s):
d4f25f6
adding rust automation ci for testing
Browse files- .github/workflows/rust.yml +29 -0
.github/workflows/rust.yml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Rust
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches: [ master ]
|
6 |
+
pull_request:
|
7 |
+
branches: [ master ]
|
8 |
+
|
9 |
+
env:
|
10 |
+
CARGO_TERM_COLOR: always
|
11 |
+
|
12 |
+
jobs:
|
13 |
+
build:
|
14 |
+
|
15 |
+
runs-on: ubuntu-latest
|
16 |
+
strategy:
|
17 |
+
matrix:
|
18 |
+
toolchain:
|
19 |
+
- stable
|
20 |
+
- beta
|
21 |
+
- nightly
|
22 |
+
|
23 |
+
steps:
|
24 |
+
- uses: actions/checkout@v3
|
25 |
+
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
26 |
+
- name: Build
|
27 |
+
run: cargo build --verbose
|
28 |
+
- name: Run tests
|
29 |
+
run: cargo test --verbose
|