|
1 | 1 | name: minimal |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: [master] |
6 | | - pull_request: |
7 | | - branches: [master] |
8 | | - workflow_dispatch: |
| 4 | + push: |
| 5 | + branches: [master] |
| 6 | + pull_request: |
| 7 | + branches: [master] |
| 8 | + workflow_dispatch: |
9 | 9 |
|
10 | 10 | env: |
11 | | - CARGO_TERM_COLOR: always |
| 11 | + CARGO_TERM_COLOR: always |
12 | 12 |
|
13 | 13 | jobs: |
14 | | - build: |
15 | | - strategy: |
16 | | - matrix: |
17 | | - os: [ubuntu-latest, macos-latest] |
18 | | - runs-on: ${{ matrix.os }} |
19 | | - env: |
20 | | - RUSTFLAGS: -D warnings |
21 | | - steps: |
22 | | - - uses: actions/checkout@v4 |
23 | | - - uses: actions/cache@v3 |
24 | | - with: |
25 | | - path: | |
26 | | - ~/.cargo/bin/ |
27 | | - ~/.cargo/registry/index/ |
28 | | - ~/.cargo/registry/cache/ |
29 | | - ~/.cargo/git/db/ |
30 | | - target/ |
31 | | - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} |
32 | | - - run: npm ci; |
33 | | - - name: Prepare minimal 2d build |
34 | | - working-directory: ./builds/prepare_builds/ |
35 | | - run: | |
36 | | - cargo run -- -c assets/example_dim2_minimal.json |
37 | | - - name: Build minimal 2d project |
38 | | - working-directory: ./builds/rapier2d-minimal |
39 | | - run: | |
40 | | - npm run build |
41 | | - - name: Build minimal 2d project compat |
42 | | - working-directory: ./rapier-compat |
43 | | - run: | |
44 | | - ./build_conf.sh example_dim2_minimal |
| 14 | + build: |
| 15 | + strategy: |
| 16 | + matrix: |
| 17 | + os: [ubuntu-latest, macos-latest] |
| 18 | + runs-on: ${{ matrix.os }} |
| 19 | + env: |
| 20 | + RUSTFLAGS: -D warnings |
| 21 | + steps: |
| 22 | + - uses: actions/checkout@v4 |
| 23 | + - uses: actions/cache@v3 |
| 24 | + with: |
| 25 | + path: | |
| 26 | + ~/.cargo/bin/ |
| 27 | + ~/.cargo/registry/index/ |
| 28 | + ~/.cargo/registry/cache/ |
| 29 | + ~/.cargo/git/db/ |
| 30 | + target/ |
| 31 | + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} |
| 32 | + - run: npm ci; |
| 33 | + - name: Prepare minimal 2d build |
| 34 | + working-directory: ./builds/prepare_builds/ |
| 35 | + run: | |
| 36 | + cargo run -- -c assets/example_dim2_minimal.json |
| 37 | + - name: Build minimal 2d project |
| 38 | + working-directory: ./builds/rapier2d-minimal |
| 39 | + run: | |
| 40 | + npm run build |
| 41 | + - name: Build minimal 2d project compat |
| 42 | + working-directory: ./rapier-compat |
| 43 | + run: | |
| 44 | + ./build_conf.sh example_dim2_minimal |
0 commit comments