Skip to content

Fix issue with rotating_frame_index() returning value exceeding MAX_F… #1091

Fix issue with rotating_frame_index() returning value exceeding MAX_F…

Fix issue with rotating_frame_index() returning value exceeding MAX_F… #1091

Workflow file for this run

name: CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
jobs:
build:
strategy:
fail-fast: false
matrix:
toolchain: [stable, beta]
os: [windows-2022, ubuntu-22.04, macos-12]
exclude:
- os: macos-12
toolchain: beta
- os: windows-2022
toolchain: beta
runs-on: ${{ matrix.os }}
needs: clean
steps:
- uses: actions/checkout@v4
- uses: seanmiddleditch/gha-setup-ninja@master
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- uses: Swatinem/rust-cache@v2
- name: Install XCB and GL dependencies
if: contains(matrix.os, 'ubuntu')
run: |
sudo apt update
sudo apt install libx11-xcb-dev libgl1-mesa-dev
- name: Build
run: cargo check --features "rafx-vulkan" --manifest-path demo/Cargo.toml
env:
RUSTFLAGS: "-C debuginfo=0 -D warnings"
- name: Build
run: cargo check --no-default-features --features "rafx-vulkan,basic-pipeline,use-egui" --manifest-path demo/Cargo.toml
env:
RUSTFLAGS: "-C debuginfo=0 -D warnings"
- name: Run tests (vulkan)
if: ${{ runner.os == 'Linux' && matrix.toolchain == 'stable' }}
run: cargo test --workspace --features "rafx-vulkan" --manifest-path demo/Cargo.toml
env:
RUSTFLAGS: "-C debuginfo=0 -D warnings"
- name: Run tests (metal)
if: ${{ runner.os == 'macOS' && matrix.toolchain == 'stable' }}
run: cargo test --workspace --features "rafx-metal" --manifest-path demo/Cargo.toml
# SDL2 does not build warning-free on macos so we can't use -D warnings
- name: Run tests (gles2)
if: ${{ runner.os == 'Linux' && matrix.toolchain == 'stable' }}
run: cargo test --workspace --features "rafx-gles2,basic-pipeline" --manifest-path demo/Cargo.toml
env:
RUSTFLAGS: "-C debuginfo=0 -D warnings"
- name: Run tests (gles3)
if: ${{ runner.os == 'Linux' && matrix.toolchain == 'stable' }}
run: cargo test --workspace --features "rafx-gles3,basic-pipeline" --manifest-path demo/Cargo.toml
env:
RUSTFLAGS: "-C debuginfo=0 -D warnings"
deny-check:
name: cargo-deny
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check ${{ matrix.checks }}
clean:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Check the format
run: cargo fmt --all -- --check
# TODO: Enable this
# - name: Run clippy
# run: >
# cargo clippy
# --all-targets
# --all-features
# --
# -D warnings