forked from gfx-rs/wgpu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'trunk' of https://github.com/gfx-rs/wgpu into wgpu/master
- Loading branch information
Showing
718 changed files
with
133,079 additions
and
1,507 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
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1,8 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Issues with shaders | ||
url: https://github.com/gfx-rs/naga/issues/new/choose | ||
about: Issues with or enhancements for the shader translation. | ||
- name: Question about wgpu | ||
url: https://github.com/gfx-rs/wgpu/discussions/new | ||
about: Any questions about how to use wgpu should go here. |
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 |
---|---|---|
|
@@ -10,8 +10,9 @@ on: | |
env: | ||
CARGO_INCREMENTAL: false | ||
CARGO_TERM_COLOR: always | ||
WGPU_DX12_COMPILER: dxc | ||
RUST_LOG: info | ||
RUST_BACKTRACE: full | ||
RUST_LOG: info #needed to understand what's going on when tests fail | ||
# This is the MSRV used by `wgpu` itself and all surrounding infrastructure. | ||
REPO_MSRV: "1.70" | ||
# This is the MSRV used by the `wgpu-core`, `wgpu-hal`, and `wgpu-types` crates, | ||
|
@@ -239,6 +240,52 @@ jobs: | |
# check wgpu-core with all features. This will also get wgpu-hal and wgpu-types. | ||
cargo check --target ${{ matrix.target }} --all-features -p wgpu-core | ||
naga-minimal-versions: | ||
name: MSRV naga Minimal Versions | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Core MSRV toolchain | ||
run: | | ||
rustup toolchain install ${{ env.CORE_MSRV }} --no-self-update --profile=minimal --component clippy | ||
rustup override set ${{ env.CORE_MSRV }} | ||
cargo -V | ||
- name: Install Nightly toolchain | ||
run: | | ||
rustup toolchain install nightly --no-self-update --profile=minimal --component clippy | ||
cargo +nightly -V | ||
- name: Install cargo-hack | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-hack | ||
|
||
- name: disable debug | ||
shell: bash | ||
run: | | ||
mkdir -p .cargo | ||
echo """ | ||
[profile.dev] | ||
debug = false" >> .cargo/config.toml | ||
- name: Set Minimal Versions | ||
shell: bash | ||
run: | | ||
set -e | ||
cargo +nightly hack generate-lockfile --remove-dev-deps -Z minimal-versions -p naga -p naga-cli | ||
- name: Clippy | ||
shell: bash | ||
run: | | ||
set -e | ||
cargo clippy --all-features -p naga -p naga-cli | ||
wasm-test: | ||
name: Test WebAssembly | ||
runs-on: ubuntu-latest | ||
|
@@ -307,6 +354,10 @@ jobs: | |
. -> target | ||
xtask -> xtask/target | ||
- name: (windows) install dxc | ||
if: matrix.os == 'windows-2022' | ||
uses: napokue/[email protected] | ||
|
||
- name: (windows) install warp | ||
if: matrix.os == 'windows-2022' | ||
shell: bash | ||
|
@@ -378,6 +429,9 @@ jobs: | |
cargo xtask test --llvm-cov | ||
- name: check naga snapshots | ||
run: git diff --exit-code -- naga/tests/out | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: always() # We want artifacts even if the tests fail. | ||
with: | ||
|
@@ -387,14 +441,17 @@ jobs: | |
**/*-difference.png | ||
- name: generate coverage report | ||
id: coverage | ||
shell: bash | ||
continue-on-error: true | ||
run: | | ||
set -e | ||
cargo llvm-cov report --lcov --output-path lcov.info | ||
- name: upload coverage report to codecov | ||
uses: codecov/codecov-action@v3 | ||
if: steps.coverage.outcome == 'success' | ||
with: | ||
files: lcov.info | ||
|
||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Documentation | ||
name: Docs | ||
|
||
on: | ||
push: | ||
|
Oops, something went wrong.