mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
14dc6b3e70
Thanks to @Robyt3 for the solution. https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/timeout.20investigation https://github.com/serde-rs/serde/issues/2577 https://github.com/dtolnay/rust-toolchain/pull/94
50 lines
1 KiB
YAML
50 lines
1 KiB
YAML
name: Check Rust
|
|
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- gh-readonly-queue/**
|
|
pull_request:
|
|
merge_group:
|
|
|
|
jobs:
|
|
rustdoc:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
CARGO_HTTP_MULTIPLEXING: false
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Cache Rust dependencies
|
|
uses: Swatinem/rust-cache@v2
|
|
- name: Run Rustdoc
|
|
run: |
|
|
RUSTDOCFLAGS=-Dwarnings DDNET_TEST_NO_LINK=1 cargo doc
|
|
|
|
rustfmt:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Run Rustfmt
|
|
run:
|
|
cargo fmt -- --check
|
|
|
|
cargo-deny:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
CARGO_HTTP_MULTIPLEXING: false
|
|
strategy:
|
|
matrix:
|
|
checks:
|
|
- advisories
|
|
- bans licenses sources
|
|
|
|
continue-on-error: ${{ matrix.checks == 'advisories' }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Cache Rust dependencies
|
|
uses: Swatinem/rust-cache@v2
|
|
- uses: EmbarkStudios/cargo-deny-action@v1
|
|
with:
|
|
command: check ${{ matrix.checks }}
|