-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
81 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: Workspace | ||
|
||
on: | ||
push: | ||
branches: master | ||
pull_request: | ||
branches: master | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
clippy: | ||
name: Clippy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: nightly-2024-06-11 | ||
components: clippy,rust-src | ||
- name: Linux (linux_android_with_fallback.rs) | ||
run: cargo clippy --target x86_64-unknown-linux-gnu | ||
- name: Linux (linux_android.rs) | ||
run: cargo clippy --target x86_64-unknown-linux-gnu --features linux_disable_fallback | ||
- name: macOS (getentropy.rs) | ||
run: cargo clippy -Zbuild-std --target x86_64-apple-darwin | ||
- name: Redox (use_file.rs) | ||
run: cargo clippy -Zbuild-std --target x86_64-unknown-redox | ||
- name: FreeBSD (getrandom.rs) | ||
run: cargo clippy -Zbuild-std --target x86_64-unknown-freebsd | ||
- name: Solaris (solaris.rs) | ||
run: cargo clippy -Zbuild-std --target x86_64-pc-solaris | ||
- name: NetBSD (netbsd.rs) | ||
run: cargo clippy -Zbuild-std --target x86_64-unknown-netbsd | ||
- name: Fuchsia (fuchsia.rs) | ||
run: cargo clippy -Zbuild-std --target x86_64-unknown-fuchsia | ||
- name: iOS (apple-other.rs) | ||
run: cargo clippy -Zbuild-std --target x86_64-apple-ios | ||
- name: WASI (wasi.rs) | ||
run: cargo clippy -Zbuild-std --target wasm32-wasip2 | ||
- name: Hermit (hermit.rs) | ||
run: cargo clippy -Zbuild-std --target x86_64-unknown-hermit | ||
# - name: VxWorks (vxworks.rs) | ||
# run: cargo clippy -Zbuild-std --target x86_64-wrs-vxworks | ||
- name: SOLID (solid.rs) | ||
run: cargo clippy -Zbuild-std --target aarch64-kmc-solid_asp3 | ||
- name: ESP-IDF (espidf.rs) | ||
run: cargo clippy -Zbuild-std --target riscv32imc-esp-espidf | ||
- name: Windows 7 (windows7.rs) | ||
run: cargo clippy -Zbuild-std --target x86_64-win7-windows-msvc | ||
- name: Windows (windows.rs) | ||
run: cargo clippy -Zbuild-std --target x86_64-pc-windows-msvc | ||
- name: Fortranix SGX (rdrand.rs) | ||
run: cargo clippy -Zbuild-std --target x86_64-fortanix-unknown-sgx | ||
- name: Web WASM (js.rs) | ||
run: cargo clippy --target wasm32-unknown-unknown --features js | ||
|
||
fmt: | ||
name: rustfmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: fmt | ||
run: cargo fmt --all -- --check | ||
|
||
check-doc: | ||
name: rustdoc + deadlinks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@nightly # Needed for doc_auto_cfg | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Generate Docs | ||
env: | ||
RUSTDOCFLAGS: "-Dwarnings --cfg docsrs" | ||
run: cargo doc --all-features --no-deps |