aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/rust.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/rust.yml')
-rw-r--r--.github/workflows/rust.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
new file mode 100644
index 000000000..2cd3ba5d7
--- /dev/null
+++ b/.github/workflows/rust.yml
@@ -0,0 +1,29 @@
1name: Rust
2
3on:
4 push:
5 branches: [master]
6 pull_request:
7 branches: [master]
8 merge_group:
9
10env:
11 CARGO_TERM_COLOR: always
12
13jobs:
14 build-nightly:
15 runs-on: ubuntu-latest
16 steps:
17 - uses: actions/checkout@v2
18 - uses: actions/cache@v2
19 with:
20 path: |
21 ~/.cargo/registry
22 ~/.cargo/git
23 target
24 key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
25
26 - name: Check fmt
27 run: cargo fmt -- --check
28 - name: Build
29 run: ./ci.sh