aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-03-27 03:33:20 +0200
committerDario Nieuwenhuis <[email protected]>2023-03-27 03:33:20 +0200
commited601d439a222d057f7f19d08ac2cc7d519e831a (patch)
treea07d9847859cbf8a93cfcb14bcbbcea305a3d402 /.github
parentcffc3fc7956570c66bf1bd259a4f68a8ca02fe58 (diff)
Add CI.
Diffstat (limited to '.github')
-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