Debian Codegraph @

debian/missing-sources/glam-0.22.0/.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 --workspace --all-targets --all-features -- -D warnings
24
25 # check that codegen output matches committed source files
26 - name: codegen
27 run: cargo run --release -p codegen -- --check
28
29 test:
30 name: Test
31 strategy:
32 matrix:
33 os: [ubuntu-latest, macos-latest, windows-latest]
34 toolchain: [1.58.1, stable, beta, nightly]
35 runs-on: ${{ matrix.os }}
36 steps:
37 - uses: actions/checkout@v2
38 - run: rustup update --no-self-update ${{ matrix.toolchain }}
39 - run: rustup default ${{ matrix.toolchain }}
40 - run: ./build_and_test_features.sh
41 shell: bash
42
43 test-core-simd:
44 name: Test portable simd
45 strategy:
46 matrix:
47 os: [ubuntu-latest, macos-latest, windows-latest]
48 toolchain: [nightly]
49 runs-on: ${{ matrix.os }}
50 steps:
51 - uses: actions/checkout@v2
52 - run: rustup update --no-self-update ${{ matrix.toolchain }}
53 - run: rustup default ${{ matrix.toolchain }}
54 - run: cargo test --features core-simd
55 shell: bash
56
57 test-wasm:
58 name: Test wasm
59 strategy:
60 matrix:
61 toolchain: [stable]
62 os: [ubuntu-latest]
63 runs-on: ${{ matrix.os }}
64 steps:
65 - uses: actions/checkout@v2
66
67 - name: Install
68 run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
69
70 - run: ./build_and_test_wasm32_firefox.sh
71 - run: ./build_and_test_wasm32_chrome.sh