-
Notifications
You must be signed in to change notification settings - Fork 72
51 lines (40 loc) · 1.59 KB
/
build.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
name: Build
on: [push, pull_request]
jobs:
src:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
targets: wasm32-unknown-unknown
- uses: actions/checkout@master
- name: Build src (native) (no default features, std)
run: cargo build --no-default-features --features std --verbose
- name: Build src (native) (no default features, hashbrown)
run: cargo build --no-default-features --features hashbrown --verbose
- name: Build src (native) (all features)
run: cargo build --all-features --verbose
- name: Build src (wasm)
run: cargo build --verbose --target wasm32-unknown-unknown
- name: Build src (wasm) (no default features, std)
run: cargo build --no-default-features --features std --verbose --target wasm32-unknown-unknown
- name: Build src (wasm) (no default features, hashbrown)
run: cargo build --no-default-features --features hashbrown --verbose --target wasm32-unknown-unknown
- name: Build src (wasm) (all features)
run: cargo build --all-features --verbose --target wasm32-unknown-unknown
- name: Test src (native)
run: cargo test --verbose --workspace
dev:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
- uses: actions/checkout@master
- name: Build dev (native) (all features)
run: cargo build --all-features --verbose
working-directory: ./dev
- name: Test dev (native)
run: cargo test --verbose --workspace
working-directory: ./dev