Debian Codegraph @

debian/missing-sources/glam/.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@v4
10 with:
11 submodules: true
12
13 - run: rustup update --no-self-update stable
14 - run: rustup default stable
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 --features std,debug-glam-assert,approx,bytemuck,mint,rand,serde,rkyv,speedy,encase,zerocopy,arbitrary -- -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 - name: Build-test documentation
30 env:
31 RUSTDOCFLAGS: -Dwarnings
32 run: cargo doc --all --no-deps --document-private-items --features std,debug-glam-assert,approx,bytemuck,mint,rand,serde,rkyv,speedy,rkyv/pointer_width_32,encase,zerocopy,arbitrary
33
34 test:
35 name: Test
36 strategy:
37 matrix:
38 os: [ubuntu-latest, macos-latest, windows-latest]
39 toolchain: [stable, beta, nightly]
40 runs-on: ${{ matrix.os }}
41 steps:
42 - uses: actions/checkout@v4
43 with:
44 submodules: true
45 - run: rustup update --no-self-update ${{ matrix.toolchain }}
46 - run: rustup default ${{ matrix.toolchain }}
47 - run: ./build_and_test_features.sh
48 shell: bash
49
50 check-msrv:
51 name: Check MSRV
52 strategy:
53 matrix:
54 os: [ubuntu-latest, macos-latest, windows-latest]
55 toolchain: [1.68.2]
56 runs-on: ${{ matrix.os }}
57 steps:
58 - uses: actions/checkout@v4
59 with:
60 submodules: true
61 - run: rustup update --no-self-update ${{ matrix.toolchain }}
62 - run: rustup default ${{ matrix.toolchain }}
63 - run: ./build_all_msrv.sh
64 shell: bash
65
66 test-core-simd:
67 name: Test portable simd
68 strategy:
69 matrix:
70 os: [ubuntu-latest, macos-latest, windows-latest]
71 toolchain: [nightly]
72 runs-on: ${{ matrix.os }}
73 steps:
74 - uses: actions/checkout@v4
75 with:
76 submodules: true
77 - run: rustup update --no-self-update ${{ matrix.toolchain }}
78 - run: rustup default ${{ matrix.toolchain }}
79 - run: cargo test --features core-simd
80 shell: bash
81
82 test-wasm:
83 name: Test wasm
84 strategy:
85 matrix:
86 toolchain: [stable]
87 os: [ubuntu-latest]
88 runs-on: ${{ matrix.os }}
89 steps:
90 - uses: actions/checkout@v4
91 with:
92 submodules: true
93
94 - name: Install
95 run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
96
97 - run: ./build_and_test_wasm32_firefox.sh
98 - run: ./build_and_test_wasm32_chrome.sh
99
100 # macos-latest uses aarch64 so using cross shouldn't be necessary anymore
101 # test-arm:
102 # name: Test Arm
103 # runs-on: ubuntu-latest
104 # strategy:
105 # fail-fast: false
106 # matrix:
107 # target:
108 # - aarch64-unknown-linux-gnu
109 # - arm-unknown-linux-gnueabi
110 # steps:
111 # - uses: actions/checkout@v4
112 # - run: rustup update --no-self-update stable
113 # - run: rustup default stable
114 # - run: rustup target add --toolchain stable ${{matrix.target}}
115 # - uses: taiki-e/install-action@cross
116 # - run: cross test --target ${{matrix.target}}