Skip to content

Trait reform (Rust 1.79, glam 0.28) #235

Trait reform (Rust 1.79, glam 0.28)

Trait reform (Rust 1.79, glam 0.28) #235

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup update --no-self-update stable
- run: rustup default stable
# make sure all code has been formatted with rustfmt and linted with clippy
- name: rustfmt
run: cargo fmt -- --check --color always
# run clippy to verify we have no warnings
- run: cargo fetch
- name: cargo clippy
run: cargo clippy --all-features -- -D warnings
test:
name: Test
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
toolchain: [stable, beta, nightly]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: rustup update --no-self-update ${{ matrix.toolchain }}
- run: rustup default ${{ matrix.toolchain }}
- run: ./build_and_test_features.sh
shell: bash
test-wasm:
strategy:
matrix:
toolchain: [stable]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- run: ./build_and_test_wasm32_firefox.sh
- run: ./build_and_test_wasm32_chrome.sh