Skip to content

Commit 32fd999

Browse files
committed
add GNU/Linux GH Actions CI testing
1 parent c2ac93a commit 32fd999

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/linuxci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
on: [push, pull_request]
2+
3+
name: GNU/Linux CI
4+
5+
jobs:
6+
check:
7+
name: GNU/Linux CI
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Cache cargo registry
11+
uses: actions/cache@v1
12+
with:
13+
path: ~/.cargo/registry
14+
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
15+
- name: Cache cargo index
16+
uses: actions/cache@v1
17+
with:
18+
path: ~/.cargo/git
19+
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
20+
- name: Cache cargo build
21+
uses: actions/cache@v1
22+
with:
23+
path: target
24+
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
25+
26+
- uses: actions/checkout@v2
27+
- name: Install latest stable toolchain
28+
uses: actions-rs/toolchain@v1
29+
with:
30+
profile: minimal
31+
toolchain: stable
32+
33+
- name: Run cargo test
34+
uses: actions-rs/cargo@v1
35+
with:
36+
command: test

0 commit comments

Comments
 (0)