Debian Codegraph @

debian/missing-sources/glam-0.15.2/.github/workflows/ci.yml

raw symbols SCIP
1 name: CI
2 on: [push, pull_request]
3 jobs:
4
5 lint:
6 name: Lint
7 runs-on: ubuntu-latest
8 steps:
9 - uses: actions/checkout@v2
10
11 - uses: actions-rs/toolchain@v1
12 with:
13 toolchain: stable
14 components: rustfmt, clippy
15
16 # make sure all code has been formatted with rustfmt and linted with clippy
17 - name: rustfmt
18 run: cargo fmt -- --check --color always
19
20 # run clippy to verify we have no warnings
21 - run: cargo fetch
22 - name: cargo clippy
23 run: cargo clippy --all-features -- -D warnings
24
25 test:
26 name: Test
27 strategy:
28 matrix:
29 os: [ubuntu-latest, macos-latest, windows-latest]
30 toolchain: [1.45.0, stable, beta, nightly]
31 runs-on: ${{ matrix.os }}
32 steps:
33 - uses: actions/checkout@v2
34 - run: rustup update --no-self-update ${{ matrix.toolchain }}
35 - run: rustup default ${{ matrix.toolchain }}
36 - run: ./build_and_test_features.sh
37 shell: bash
38
39 build-wasm:
40 strategy:
41 matrix:
42 toolchain: [stable, nightly]
43 os: [ubuntu-latest]
44 runs-on: ${{ matrix.os }}
45 steps:
46 - uses: actions/checkout@v2
47
48 - uses: actions-rs/toolchain@v1
49 with:
50 toolchain: ${{ matrix.toolchain }}
51 target: wasm32-unknown-unknown
52 override: true
53
54 - name: Check wasm
55 uses: actions-rs/cargo@v1
56 with:
57 command: check
58 args: --target wasm32-unknown-unknown