-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (36 loc) · 828 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
name: basic-ci
on:
push:
branches:
- master
pull_request:
jobs:
check:
strategy:
matrix:
target: ['ubuntu-latest', 'windows-latest']
runs-on: ${{ matrix.target }}
steps:
- uses: actions/checkout@v4
- name: check
run: cargo check
- name: clippy
run: cargo clippy
- name: fmt
run: cargo fmt -- --check
- name: test
run: cargo test --all --no-fail-fast
- name: build
run: cargo build
- name: wasm
env:
RUSTFLAGS: -D warnings -A unused-imports
run: |
npm install -g [email protected]
cd dr-html-wasm && wasm-pack build --target web
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings
concurrency:
group: ${{ github.ref }}-ci
cancel-in-progress: true