-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (41 loc) · 954 Bytes
/
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
name: ci
on: push
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Format
run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Clippy
run: cargo clippy --fix
- name: Check for diff
run: git diff --exit-code
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
test:
runs-on: ubuntu-latest-32-core
steps:
- uses: actions/checkout@v4
- uses: asdf-vm/actions/install@v3
- name: Prepare
shell: bash
run: |
sh scripts/0-venv.sh
sh scripts/1-compile.sh
sh scripts/2-merge.sh
ls -Rl examples/
- name: Build
run: cargo build --verbose
- name: Run tests
run: ./scripts/e2e_test.sh