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
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: check
|
2021-09-10 06:50:34 +10:00
|
|
|
args: --workspace --all-targets --all-features
|
2019-10-21 02:41:13 +11:00
|
|
|
|
2022-03-28 08:30:10 +11:00
|
|
|
check_msrv:
|
|
|
|
name: Check MSRV (1.59.0)
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: dtolnay/rust-toolchain@1.59.0
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: check
|
|
|
|
args: --workspace --all-targets --all-features
|
|
|
|
|
2021-03-14 21:29:49 +11:00
|
|
|
generated:
|
|
|
|
name: Generated
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
- name: Run generator
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: run
|
|
|
|
args: -p generator
|
|
|
|
- name: Format generated results
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: fmt
|
|
|
|
args: -p ash
|
|
|
|
- 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
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
2021-03-14 21:31:17 +11:00
|
|
|
- name: Test all targets
|
|
|
|
uses: actions-rs/cargo@v1
|
2019-10-21 02:41:13 +11:00
|
|
|
with:
|
|
|
|
command: test
|
2020-09-02 04:18:38 +10:00
|
|
|
args: --workspace --all-targets
|
2021-03-14 21:31:17 +11:00
|
|
|
- name: Test docs
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: test
|
|
|
|
args: --workspace --doc
|
2019-10-21 02:41:13 +11:00
|
|
|
|
|
|
|
fmt:
|
|
|
|
name: Rustfmt
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
2021-12-27 21:43:12 +11:00
|
|
|
components: rustfmt
|
2019-10-21 02:41:13 +11:00
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: fmt
|
|
|
|
args: --all -- --check
|
|
|
|
|
|
|
|
clippy:
|
|
|
|
name: Clippy
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
2021-12-27 21:43:12 +11:00
|
|
|
components: clippy
|
2019-10-21 02:41:13 +11:00
|
|
|
- uses: actions-rs/cargo@v1
|
2021-12-27 21:43:12 +11:00
|
|
|
name: Clippy lint without features
|
2019-10-21 02:41:13 +11:00
|
|
|
with:
|
|
|
|
command: clippy
|
2021-12-27 21:43:12 +11:00
|
|
|
# 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.
|
|
|
|
args: -p ash -p ash-window --no-default-features -- -D warnings
|
2021-12-24 09:26:48 +11:00
|
|
|
- uses: actions-rs/cargo@v1
|
2021-12-27 21:43:12 +11:00
|
|
|
name: Clippy lint with all features
|
2021-12-24 09:26:48 +11:00
|
|
|
with:
|
|
|
|
command: clippy
|
|
|
|
args: --workspace --all-targets --all-features -- -D warnings
|
2021-12-27 21:43:12 +11:00
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
name: Clippy lint with default features
|
|
|
|
with:
|
|
|
|
command: clippy
|
|
|
|
args: --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
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
name: Document all crates
|
|
|
|
env:
|
|
|
|
RUSTDOCFLAGS: -Dwarnings
|
|
|
|
with:
|
|
|
|
command: doc
|
|
|
|
args: --all --all-features --no-deps --document-private-items
|