2019-10-21 02:41:13 +11:00
|
|
|
on: [push, pull_request]
|
|
|
|
|
2019-10-21 02:45:18 +11:00
|
|
|
name: CI
|
2019-10-21 02:41:13 +11:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
name: Check
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2023-04-06 15:50:10 +10:00
|
|
|
- run: cargo check --workspace --all-targets --all-features
|
2019-10-21 02:41:13 +11:00
|
|
|
|
2022-03-28 08:30:10 +11:00
|
|
|
check_msrv:
|
2023-03-10 09:39:44 +11:00
|
|
|
name: Check ash MSRV (1.59.0)
|
2022-03-28 08:30:10 +11:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: dtolnay/rust-toolchain@1.59.0
|
2023-04-06 15:50:10 +10:00
|
|
|
- run: cargo check -p ash --all-features
|
2023-03-10 09:39:44 +11:00
|
|
|
|
|
|
|
check_ash_window_msrv:
|
|
|
|
name: Check ash-window MSRV (1.64.0)
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: dtolnay/rust-toolchain@1.64.0
|
2023-04-06 15:50:10 +10:00
|
|
|
- run: cargo check -p ash-window -p examples --all-features
|
2022-03-28 08:30:10 +11:00
|
|
|
|
2021-03-14 21:29:49 +11:00
|
|
|
generated:
|
|
|
|
name: Generated
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Run generator
|
2023-04-06 15:50:10 +10:00
|
|
|
run: cargo run -p generator
|
2021-03-14 21:29:49 +11:00
|
|
|
- name: Diff autogen result
|
|
|
|
run: git diff --quiet || (echo "::error::Generated files are different, please regenerate with cargo run -p generator!"; git diff; false)
|
|
|
|
|
2019-10-21 02:41:13 +11:00
|
|
|
test:
|
|
|
|
name: Test Suite
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-09-10 06:50:34 +10:00
|
|
|
- name: Install Vulkan loader
|
|
|
|
run: sudo apt-get install libvulkan-dev
|
2019-10-21 02:41:13 +11:00
|
|
|
- uses: actions/checkout@v1
|
2021-03-14 21:31:17 +11:00
|
|
|
- name: Test all targets
|
2023-04-06 15:50:10 +10:00
|
|
|
run: cargo test --workspace --all-targets
|
2021-03-14 21:31:17 +11:00
|
|
|
- name: Test docs
|
2023-04-06 15:50:10 +10:00
|
|
|
run: cargo test --workspace --doc
|
2019-10-21 02:41:13 +11:00
|
|
|
|
|
|
|
fmt:
|
|
|
|
name: Rustfmt
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2023-04-06 15:50:10 +10:00
|
|
|
- run: cargo fmt --all -- --check
|
2019-10-21 02:41:13 +11:00
|
|
|
|
|
|
|
clippy:
|
|
|
|
name: Clippy
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2023-04-06 15:50:10 +10:00
|
|
|
- name: Clippy lint without features
|
|
|
|
# Only test the core ash and ash-window crate, where features reside.
|
|
|
|
# The examples crate would otherwise enable all default features again,
|
|
|
|
# making this test moot.
|
|
|
|
run: cargo clippy -p ash -p ash-window --no-default-features -- -D warnings
|
|
|
|
- name: Clippy lint with all features
|
|
|
|
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
|
|
|
|
- name: Clippy lint with default features
|
|
|
|
run: cargo clippy --workspace --all-targets -- -D warnings
|
2022-01-23 06:27:07 +11:00
|
|
|
|
|
|
|
docs:
|
|
|
|
name: Build-test docs
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2023-04-06 15:50:10 +10:00
|
|
|
- name: Document all crates
|
2022-01-23 06:27:07 +11:00
|
|
|
env:
|
|
|
|
RUSTDOCFLAGS: -Dwarnings
|
2023-04-06 15:50:10 +10:00
|
|
|
run: cargo doc --all --all-features --no-deps --document-private-items
|