mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Cleanup CI Jobs
This commit is contained in:
parent
a1fc4a0316
commit
23119b1eeb
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -36,10 +36,6 @@ env:
|
||||
# Corresponds to https://github.com/gfx-rs/ci-build/releases
|
||||
CI_BINARY_BUILD: "build19"
|
||||
|
||||
# We sometimes need nightly to use special things in CI.
|
||||
#
|
||||
# In order to prevent CI regressions, we pin the nightly version.
|
||||
NIGHTLY_VERSION: "nightly-2024-10-17"
|
||||
# This is the MSRV used by `wgpu` itself and all surrounding infrastructure.
|
||||
REPO_MSRV: "1.83"
|
||||
# This is the MSRV used by the `wgpu-core`, `wgpu-hal`, and `wgpu-types` crates,
|
||||
@ -399,8 +395,8 @@ jobs:
|
||||
|
||||
- name: Install Nightly Toolchain
|
||||
run: |
|
||||
rustup toolchain install ${{ env.NIGHTLY_VERSION }} --no-self-update --profile=minimal --component clippy
|
||||
cargo +${{ env.NIGHTLY_VERSION }} -V
|
||||
rustup toolchain install ${{ env.REPO_MSRV }} --no-self-update --profile=minimal
|
||||
cargo +${{ env.REPO_MSRV }} -V
|
||||
|
||||
- name: Install cargo-hack
|
||||
uses: taiki-e/install-action@v2
|
||||
@ -420,7 +416,9 @@ jobs:
|
||||
run: |
|
||||
set -e
|
||||
|
||||
cargo +${{ env.NIGHTLY_VERSION }} hack generate-lockfile --remove-dev-deps -Z minimal-versions -p naga -p naga-cli
|
||||
cargo +${{ env.REPO_MSRV }} hack generate-lockfile --remove-dev-deps -Z minimal-versions -p naga -p naga-cli
|
||||
env:
|
||||
RUSTC_BOOTSTRAP: 1
|
||||
|
||||
- name: Clippy
|
||||
shell: bash
|
||||
|
||||
25
.github/workflows/docs.yml
vendored
25
.github/workflows/docs.yml
vendored
@ -9,9 +9,8 @@ on:
|
||||
- trunk
|
||||
|
||||
env:
|
||||
# We need to use nightly for various features
|
||||
# when building docs.rs style docs.
|
||||
NIGHTLY_VERSION: nightly-2025-01-09
|
||||
# This is the MSRV used by `wgpu` itself and all surrounding infrastructure.
|
||||
REPO_MSRV: "1.83"
|
||||
|
||||
CARGO_INCREMENTAL: false
|
||||
CARGO_TERM_COLOR: always
|
||||
@ -28,17 +27,21 @@ jobs:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Install documentation toolchain
|
||||
run: rustup toolchain install ${{ env.NIGHTLY_VERSION }} --no-self-update --profile=minimal
|
||||
|
||||
- name: Build the docs (nightly)
|
||||
run: |
|
||||
cargo +${{ env.NIGHTLY_VERSION }} doc --no-deps --lib
|
||||
rustup toolchain install ${{ env.REPO_MSRV }} --no-self-update --profile=minimal
|
||||
rustup override set ${{ env.REPO_MSRV }}
|
||||
|
||||
- name: caching
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
key: doc-build
|
||||
|
||||
- name: Build the docs
|
||||
run: |
|
||||
cargo doc --no-deps --lib --document-private-items
|
||||
env:
|
||||
RUSTDOCFLAGS: --cfg docsrs
|
||||
|
||||
- name: Build the docs (stable)
|
||||
run: cargo +stable doc --no-deps --lib
|
||||
if: ${{ failure() }}
|
||||
RUSTC_BOOTSTRAP: 1
|
||||
|
||||
- name: Deploy the docs
|
||||
uses: JamesIves/github-pages-deploy-action@v4.7.2
|
||||
|
||||
5
.github/workflows/generate.yml
vendored
5
.github/workflows/generate.yml
vendored
@ -40,6 +40,11 @@ jobs:
|
||||
rustup override set ${{ env.REPO_MSRV }}
|
||||
cargo -V
|
||||
|
||||
- name: caching
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
key: cargo-generate-${{ matrix.name }}
|
||||
|
||||
- name: "Install cargo-generate"
|
||||
uses: taiki-e/install-action@v2
|
||||
with:
|
||||
|
||||
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
@ -12,7 +12,6 @@ env:
|
||||
CARGO_INCREMENTAL: false
|
||||
CARGO_TERM_COLOR: always
|
||||
RUST_BACKTRACE: full
|
||||
RUSTFLAGS:
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
@ -37,6 +36,11 @@ jobs:
|
||||
- name: Install wasm-bindgen
|
||||
run: cargo +stable install wasm-bindgen-cli --version=$WASM_BINDGEN_VERSION
|
||||
|
||||
- name: caching
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
key: publish-build
|
||||
|
||||
- name: Build examples
|
||||
run: cargo xtask run-wasm --no-serve
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user