| 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 |
|
| 17 |
- name: rustfmt |
| 18 |
run: cargo fmt -- --check --color always |
| 19 |
|
| 20 |
|
| 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 |
|
| 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 |
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
|