Debian Codegraph @

debian/missing-sources/glam-0.29.3/.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
11 - run: rustup update --no-self-update stable
12 - run: rustup default stable
13
14 # make sure all code has been formatted with rustfmt and linted with clippy
15 - name: rustfmt
16 run: cargo fmt -- --check --color always
17
18 # run clippy to verify we have no warnings
19 - run: cargo fetch
20 - name: cargo clippy
21 run: cargo clippy --workspace --all-targets --all-features -- -D warnings
22
23 # check that codegen output matches committed source files
24 - name: codegen
25 run: cargo run --release -p codegen -- --check
26
27 - name: Build-test documentation
28 env:
29 RUSTDOCFLAGS: -Dwarnings
30 run: cargo doc --all --all-features --no-deps --document-private-items --features rkyv/size_32
31
32 test:
33 name: Test
34 strategy:
35 matrix:
36 os: [ubuntu-latest, macos-latest, windows-latest]
37 toolchain: [stable, beta, nightly]
38 runs-on: ${{ matrix.os }}
39 steps:
40 - uses: actions/checkout@v4
41 - run: rustup update --no-self-update ${{ matrix.toolchain }}
42 - run: rustup default ${{ matrix.toolchain }}
43 - run: ./build_and_test_features.sh
44 shell: bash
45
46 check-msrv:
47 name: Check MSRV
48 strategy:
49 matrix:
50 os: [ubuntu-latest, macos-latest, windows-latest]
51 toolchain: [1.68.2]
52 runs-on: ${{ matrix.os }}
53 steps:
54 - uses: actions/checkout@v4
55 - run: rustup update --no-self-update ${{ matrix.toolchain }}
56 - run: rustup default ${{ matrix.toolchain }}
57 - run: ./build_all_msrv.sh
58 shell: bash
59
60 test-core-simd:
61 name: Test portable simd
62 strategy:
63 matrix:
64 os: [ubuntu-latest, macos-latest, windows-latest]
65 toolchain: [nightly]
66 runs-on: ${{ matrix.os }}
67 steps:
68 - uses: actions/checkout@v4
69 - run: rustup update --no-self-update ${{ matrix.toolchain }}
70 - run: rustup default ${{ matrix.toolchain }}
71 - run: cargo test --features core-simd
72 shell: bash
73
74 test-wasm:
75 name: Test wasm
76 strategy:
77 matrix:
78 toolchain: [stable]
79 os: [ubuntu-latest]
80 runs-on: ${{ matrix.os }}
81 steps:
82 - uses: actions/checkout@v4
83
84 - name: Install
85 run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
86
87 - run: ./build_and_test_wasm32_firefox.sh
88 - run: ./build_and_test_wasm32_chrome.sh
89
90 # macos-latest uses aarch64 so using cross shouldn't be necessary anymore
91 # test-arm:
92 # name: Test Arm
93 # runs-on: ubuntu-latest
94 # strategy:
95 # fail-fast: false
96 # matrix:
97 # target:
98 # - aarch64-unknown-linux-gnu
99 # - arm-unknown-linux-gnueabi
100 # steps:
101 # - uses: actions/checkout@v4
102 # - run: rustup update --no-self-update stable
103 # - run: rustup default stable
104 # - run: rustup target add --toolchain stable ${{matrix.target}}
105 # - uses: taiki-e/install-action@cross
106 # - run: cross test --target ${{matrix.target}}