Texture2D & Sprite extraction #79
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check | |
on: | |
pull_request: | |
branches: ["main"] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check: | |
name: Check | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt, clippy | |
- name: Set up cargo cache | |
uses: actions/cache@v3 | |
continue-on-error: false | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Lint | |
run: | | |
cargo fmt --all -- --check | |
cargo clippy -- -D warnings | |
- name: Install cargo check tools | |
run: cargo install cargo-deny cargo-outdated cargo-udeps cargo-audit cargo-pants || true | |
- name: Check | |
if: ${{ !contains('Windows', runner.os) }} | |
run: | | |
cargo deny check | |
cargo outdated --exit-code 1 | |
cargo udeps | |
rm -rf ~/.cargo/advisory-db | |
cargo audit | |
cargo pants | |
- name: Check | |
if: ${{ contains('Windows', runner.os) }} | |
run: | | |
cargo deny check | |
cargo outdated --exit-code 1 | |
cargo udeps | |
rm -Recurse -Force ~/.cargo/advisory-db | |
cargo audit | |
cargo pants | |
- name: Test | |
run: cargo test |