-
Notifications
You must be signed in to change notification settings - Fork 72
42 lines (34 loc) · 1.14 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
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: 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