Skip to content

Commit f855e35

Browse files
authored
👷 Add ci (#22)
* 🚧 first try * 🐛 fix url to download sscache * 🔥 simplify ci
1 parent 67f64a6 commit f855e35

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: ci
3+
4+
on:
5+
push:
6+
workflow_dispatch:
7+
8+
jobs:
9+
tests:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ubuntu-latest, macos-latest]
15+
rust: [stable]
16+
env:
17+
CARGO_TERM_COLOR: always
18+
RUST_BACKTRACE: full
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Install Rust ${{ matrix.rust }}
22+
uses: actions-rs/toolchain@v1
23+
with:
24+
toolchain: ${{ matrix.rust }}
25+
profile: minimal
26+
override: true
27+
- name: Cache cargo registry
28+
uses: actions/cache@v2
29+
continue-on-error: false
30+
with:
31+
path: |
32+
~/.cargo/registry
33+
~/.cargo/git
34+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
35+
restore-keys: |
36+
${{ runner.os }}-cargo-
37+
- run: cargo test --all-features

0 commit comments

Comments
 (0)