-
Notifications
You must be signed in to change notification settings - Fork 91
67 lines (61 loc) · 2.09 KB
/
ci.yml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: CI
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *' # Every day at midnight
env:
CARGO_TERM_COLOR: always
jobs:
checks:
strategy:
matrix:
directories: [vmm/sandbox, vmm/task, shim, wasm, quark]
include:
- directories: wasm
wasmEdge: 0.11.2
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- run: rustup toolchain install nightly --component rustfmt
- name: Install Protoc
uses: arduino/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install WasmEdge
if: ${{ matrix.wasmEdge }}
run: curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- -v ${{ matrix.wasmEdge }} >> /dev/null
- name: Check
working-directory: ${{ matrix.directories }}
run: cargo check --examples --tests --all-features
- name: Nightly fmt
working-directory: ${{ matrix.directories }}
run: cargo +nightly fmt --all -- --check
- name: Clippy
working-directory: ${{ matrix.directories }}
run: cargo clippy --all-features -- -D warnings
- name: Deny
working-directory: ${{ matrix.directories }}
run: cargo install cargo-deny && cargo deny -L warn --all-features check
tests:
strategy:
matrix:
directories: [ vmm/sandbox, vmm/task, shim, wasm, quark ]
include:
- directories: wasm
wasmEdge: 0.11.2
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Install Protoc
uses: arduino/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install WasmEdge
if: ${{ matrix.wasmEdge }}
run: curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- -v ${{ matrix.wasmEdge }} >> /dev/null
- name: Test
working-directory: ${{ matrix.directories }}
run: sudo -E $(command -v cargo) test --all-features