-
-
Notifications
You must be signed in to change notification settings - Fork 29
92 lines (90 loc) · 3.06 KB
/
salva-ci-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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Salva CI build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
check-fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check formatting
run: cargo fmt -- --check
build-native:
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
strategy:
matrix:
package: [salva2d, salva3d]
feature: [default, parallel, sampling, parry, rapier, rapier-testbed]
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install -y cmake libxcb-composite0-dev
- name: build ${{ matrix.package }} --features ${{ matrix.feature }}
run: cargo build --verbose -p ${{ matrix.package }} --features ${{ matrix.feature }}
all-features-native:
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
strategy:
matrix:
package: [salva2d, salva3d]
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install -y cmake
- name: build ${{ matrix.package }} --all-features
run: cargo build --verbose -p ${{ matrix.package }} --all-features
test-native:
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
strategy:
matrix:
package: [salva2d, salva3d]
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install -y cmake
- name: test ${{ matrix.package }}
run: cargo test --verbose -p ${{ matrix.package }}
examples-native:
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
strategy:
matrix:
package: [examples2d, examples3d]
feature: [default, parallel]
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install -y cmake libxcb-composite0-dev libx11-dev libasound2-dev libudev-dev
- name: build ${{ matrix.package }} --features ${{ matrix.feature }}
run: cargo build --verbose -p ${{ matrix.package }} --features ${{ matrix.feature }}
build-wasm:
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
strategy:
matrix:
package: [salva2d, salva3d]
steps:
- uses: actions/checkout@v2
- run: rustup target add wasm32-unknown-unknown
- name: wasm build ${{ matrix.package }}
run: cargo build -p ${{ matrix.package }} --verbose --features wasm-bindgen --target wasm32-unknown-unknown;
# build-wasm-emscripten:
# runs-on: ubuntu-latest
# env:
# RUSTFLAGS: -D warnings
# steps:
# - uses: actions/checkout@v2
# - run: rustup target add wasm32-unknown-emscripten
# - name: build salva2d
# run: cd build/salva2d && cargo build --verbose --target wasm32-unknown-emscripten;
# - name: build salva3d
# run: cd build/salva3d && cargo build --verbose --target wasm32-unknown-emscripten;
# - name: build salva2d --features simd-stable
# run: cd build/salva2d && cargo build --verbose --target wasm32-unknown-emscripten --features simd-stable;
# - name: build salva3d --features simd-stable
# run: cd build/salva3d && cargo build --verbose --target wasm32-unknown-emscripten --features simd-stable;