-
Notifications
You must be signed in to change notification settings - Fork 49
51 lines (46 loc) · 1.07 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Based on: https://github.com/clap-rs/clap/blob/master/.github/workflows/ci.yml
name: CI
permissions:
contents: read
on:
pull_request:
push:
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
CLICOLOR: 1
jobs:
test:
name: Test
strategy:
matrix:
build: [linux]
include:
- build: linux
os: ubuntu-latest
rust: "stable"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v2
- name: Install liburing
run: |
sudo apt-get update
sudo apt-get install -y liburing-dev
- uses: taiki-e/install-action@v2
with:
tool: cargo-about
- uses: actions/setup-node@v4
with:
node-version: 20.10
- name: Run CI
run: ./scripts/ci/all
- name: Test
run: cargo test