Skip to content

prepare version-0.2.3 #27

prepare version-0.2.3

prepare version-0.2.3 #27

Workflow file for this run

on:
pull_request:
push:
branches: master
name: Continuous integration
jobs:
check:
name: Check
runs-on: windows-latest
strategy:
matrix:
feature: [ directx9, directx10, directx11, directx12 ]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check
args: --features ${{ matrix.feature }}
fmt:
name: Rustfmt
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: Clippy
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
test:
name: Test Suite
runs-on: windows-latest
strategy:
matrix:
feature: [ directx9, directx10, directx11, directx12 ]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --features ${{ matrix.feature }}