mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
ffde86efa0
Objective During work on #3009 I've found that not all jobs use actions-rs, and therefore, an previous version of Rust is used for them. So while compilation and other stuff can pass, checking markup and Android build may fail with compilation errors. Solution This PR adds `action-rs` for any job running cargo, and updates the edition to 2021.
72 lines
1.7 KiB
YAML
72 lines
1.7 KiB
YAML
name: Dependencies
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '**/Cargo.toml'
|
|
- 'deny.toml'
|
|
push:
|
|
paths:
|
|
- '**/Cargo.toml'
|
|
- 'deny.toml'
|
|
branches-ignore:
|
|
- 'dependabot/**'
|
|
- staging-squash-merge.tmp
|
|
schedule:
|
|
- cron: "0 0 * * 0"
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
check-advisories:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
- name: Install cargo-deny
|
|
run: cargo install cargo-deny
|
|
- name: Check for security advisories and unmaintained crates
|
|
run: cargo deny check advisories
|
|
|
|
check-bans:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
- name: Install cargo-deny
|
|
run: cargo install cargo-deny
|
|
- name: Check for banned and duplicated dependencies
|
|
run: cargo deny check bans
|
|
|
|
check-licenses:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
- name: Install cargo-deny
|
|
run: cargo install cargo-deny
|
|
- name: Check for unauthorized licenses
|
|
run: cargo deny check licenses
|
|
|
|
check-sources:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
- name: Install cargo-deny
|
|
run: cargo install cargo-deny
|
|
- name: Checked for unauthorized crate sources
|
|
run: cargo deny check sources
|