vulkano/.github/workflows/rust.yml

70 lines
1.5 KiB
YAML
Raw Normal View History

2020-11-10 16:29:09 +00:00
name: Rust
on:
push:
2022-09-24 08:14:53 +00:00
paths-ignore:
- '**.md'
2020-11-10 16:29:09 +00:00
pull_request:
2022-09-24 08:14:53 +00:00
paths-ignore:
- '**.md'
2020-11-10 16:29:09 +00:00
env:
CARGO_TERM_COLOR: always
jobs:
windows_stable:
# runs-on: windows-latest
runs-on: [self-hosted, Windows]
2020-11-10 16:29:09 +00:00
steps:
# - name: Ninja Install
# run: pip install ninja
2022-09-24 08:14:53 +00:00
- uses: actions/checkout@v3
- name: Build tests
run: cargo build --tests --verbose
2020-11-10 16:29:09 +00:00
- name: Run tests
run: cargo test --verbose
- name: Build examples
run: |
cd examples
cargo build --verbose
2020-11-10 16:29:09 +00:00
linux_stable:
runs-on: ubuntu-latest
steps:
2022-09-24 08:14:53 +00:00
- uses: actions/checkout@v3
- name: Build tests
run: cargo build --tests --verbose
2020-11-10 16:29:09 +00:00
- name: Run tests
run: cargo test --verbose
- name: Build examples
run: |
cd examples
cargo build --verbose
2020-11-10 16:29:09 +00:00
macos_stable:
runs-on: macos-latest
steps:
2022-09-24 08:14:53 +00:00
- uses: actions/checkout@v3
- name: Build tests
run: cargo build --tests --verbose
2020-11-10 16:29:09 +00:00
- name: Run tests
run: cargo test --verbose
- name: Build examples
run: |
cd examples
cargo build --verbose
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run clippy check
run: |
rustup component add clippy
cargo clippy -- -Dwarnings
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run fmt check
run: |
rustup toolchain install nightly --component rustfmt
cargo +nightly fmt --check