mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
ci: only allow one set of jobs per PR (#7958)
This commit is contained in:
parent
5d14f33259
commit
232d46509b
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -46,6 +46,13 @@ env:
|
||||
CACHE_SUFFIX: d # cache busting
|
||||
WGPU_CI: true
|
||||
|
||||
# Every time a PR is pushed to, cancel any previous jobs. This
|
||||
# makes us behave nicer to github and get faster turnaround times
|
||||
# on PRs that are pushed to multiple times in rapid succession.
|
||||
concurrency:
|
||||
group: ${{github.workflow}}-${{github.ref}}
|
||||
cancel-in-progress: ${{github.event_name == 'pull_request'}}
|
||||
|
||||
# We distinguish the following kinds of builds:
|
||||
# - native: build for the same target as we compile on
|
||||
# - web: build for the Web
|
||||
|
||||
7
.github/workflows/cts.yml
vendored
7
.github/workflows/cts.yml
vendored
@ -13,6 +13,13 @@ env:
|
||||
RUST_BACKTRACE: full
|
||||
MSRV: "1.88"
|
||||
|
||||
# Every time a PR is pushed to, cancel any previous jobs. This
|
||||
# makes us behave nicer to github and get faster turnaround times
|
||||
# on PRs that are pushed to multiple times in rapid succession.
|
||||
concurrency:
|
||||
group: ${{github.workflow}}-${{github.ref}}
|
||||
cancel-in-progress: ${{github.event_name == 'pull_request'}}
|
||||
|
||||
jobs:
|
||||
cts:
|
||||
strategy:
|
||||
|
||||
7
.github/workflows/docs.yml
vendored
7
.github/workflows/docs.yml
vendored
@ -16,6 +16,13 @@ env:
|
||||
CARGO_TERM_COLOR: always
|
||||
RUST_BACKTRACE: full
|
||||
|
||||
# Every time a PR is pushed to, cancel any previous jobs. This
|
||||
# makes us behave nicer to github and get faster turnaround times
|
||||
# on PRs that are pushed to multiple times in rapid succession.
|
||||
concurrency:
|
||||
group: ${{github.workflow}}-${{github.ref}}
|
||||
cancel-in-progress: ${{github.event_name == 'pull_request'}}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
7
.github/workflows/generate.yml
vendored
7
.github/workflows/generate.yml
vendored
@ -16,6 +16,13 @@ env:
|
||||
REPO_MSRV: "1.88"
|
||||
RUSTFLAGS: -D warnings
|
||||
|
||||
# Every time a PR is pushed to, cancel any previous jobs. This
|
||||
# makes us behave nicer to github and get faster turnaround times
|
||||
# on PRs that are pushed to multiple times in rapid succession.
|
||||
concurrency:
|
||||
group: ${{github.workflow}}-${{github.ref}}
|
||||
cancel-in-progress: ${{github.event_name == 'pull_request'}}
|
||||
|
||||
jobs:
|
||||
cargo-generate:
|
||||
timeout-minutes: 5
|
||||
|
||||
97
.github/workflows/lazy.yml
vendored
97
.github/workflows/lazy.yml
vendored
@ -3,7 +3,7 @@ name: Lazy
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/workflows/lazy.yml'
|
||||
- ".github/workflows/lazy.yml"
|
||||
push:
|
||||
branches: [trunk]
|
||||
|
||||
@ -12,6 +12,13 @@ env:
|
||||
CARGO_TERM_COLOR: always
|
||||
RUST_BACKTRACE: full
|
||||
|
||||
# Every time a PR is pushed to, cancel any previous jobs. This
|
||||
# makes us behave nicer to github and get faster turnaround times
|
||||
# on PRs that are pushed to multiple times in rapid succession.
|
||||
concurrency:
|
||||
group: ${{github.workflow}}-${{github.ref}}
|
||||
cancel-in-progress: ${{github.event_name == 'pull_request'}}
|
||||
|
||||
jobs:
|
||||
parse-dota2:
|
||||
name: "Validate Shaders: Dota2"
|
||||
@ -98,58 +105,58 @@ jobs:
|
||||
|
||||
- name: Compile `spv` from `spvasm`
|
||||
run: |
|
||||
cd naga/spirv-samples
|
||||
mkdir -p spv
|
||||
cd naga/spirv-samples
|
||||
mkdir -p spv
|
||||
|
||||
find "./spvasm" -name '*.spvasm' | while read fname;
|
||||
do
|
||||
echo "Convert to spv with spirv-as: $fname"
|
||||
../install/bin/spirv-as --target-env spv1.3 $(realpath ${fname}) -o ./spv/$(basename ${fname}).spv
|
||||
done;
|
||||
find "./spvasm" -name '*.spvasm' | while read fname;
|
||||
do
|
||||
echo "Convert to spv with spirv-as: $fname"
|
||||
../install/bin/spirv-as --target-env spv1.3 $(realpath ${fname}) -o ./spv/$(basename ${fname}).spv
|
||||
done;
|
||||
|
||||
- name: Validate `spv` and generate `wgsl`
|
||||
run: |
|
||||
set +e
|
||||
cd naga/spirv-samples
|
||||
SUCCESS_RESULT_COUNT=0
|
||||
FILE_COUNT=0
|
||||
mkdir -p spv
|
||||
mkdir -p wgsl
|
||||
set +e
|
||||
cd naga/spirv-samples
|
||||
SUCCESS_RESULT_COUNT=0
|
||||
FILE_COUNT=0
|
||||
mkdir -p spv
|
||||
mkdir -p wgsl
|
||||
|
||||
echo "==== Validate spv and generate wgsl ===="
|
||||
rm -f counter
|
||||
touch counter
|
||||
echo "==== Validate spv and generate wgsl ===="
|
||||
rm -f counter
|
||||
touch counter
|
||||
|
||||
find "./spv" -name '*.spv' | while read fname;
|
||||
do
|
||||
echo "Convert: $fname"
|
||||
FILE_COUNT=$((FILE_COUNT+1))
|
||||
../../target/release/naga --validate 27 $(realpath ${fname}) ./wgsl/$(basename ${fname}).wgsl
|
||||
if [[ $? -eq 0 ]]; then
|
||||
SUCCESS_RESULT_COUNT=$((SUCCESS_RESULT_COUNT + 1))
|
||||
fi
|
||||
echo "Result: $(expr $FILE_COUNT - $SUCCESS_RESULT_COUNT) / $FILE_COUNT" > counter
|
||||
done
|
||||
cat counter
|
||||
find "./spv" -name '*.spv' | while read fname;
|
||||
do
|
||||
echo "Convert: $fname"
|
||||
FILE_COUNT=$((FILE_COUNT+1))
|
||||
../../target/release/naga --validate 27 $(realpath ${fname}) ./wgsl/$(basename ${fname}).wgsl
|
||||
if [[ $? -eq 0 ]]; then
|
||||
SUCCESS_RESULT_COUNT=$((SUCCESS_RESULT_COUNT + 1))
|
||||
fi
|
||||
echo "Result: $(expr $FILE_COUNT - $SUCCESS_RESULT_COUNT) / $FILE_COUNT" > counter
|
||||
done
|
||||
cat counter
|
||||
|
||||
- name: Validate output `wgsl`
|
||||
run: |
|
||||
set +e
|
||||
cd naga/spirv-samples
|
||||
SUCCESS_RESULT_COUNT=0
|
||||
FILE_COUNT=0
|
||||
set +e
|
||||
cd naga/spirv-samples
|
||||
SUCCESS_RESULT_COUNT=0
|
||||
FILE_COUNT=0
|
||||
|
||||
rm -f counter
|
||||
touch counter
|
||||
rm -f counter
|
||||
touch counter
|
||||
|
||||
find "./wgsl" -name '*.wgsl' | while read fname;
|
||||
do
|
||||
echo "Validate: $fname"
|
||||
FILE_COUNT=$((FILE_COUNT+1))
|
||||
../../target/release/naga --validate 27 $(realpath ${fname})
|
||||
if [[ $? -eq 0 ]]; then
|
||||
SUCCESS_RESULT_COUNT=$((SUCCESS_RESULT_COUNT + 1))
|
||||
fi
|
||||
echo "Result: $(expr $FILE_COUNT - $SUCCESS_RESULT_COUNT) / $FILE_COUNT" > counter
|
||||
done
|
||||
cat counter
|
||||
find "./wgsl" -name '*.wgsl' | while read fname;
|
||||
do
|
||||
echo "Validate: $fname"
|
||||
FILE_COUNT=$((FILE_COUNT+1))
|
||||
../../target/release/naga --validate 27 $(realpath ${fname})
|
||||
if [[ $? -eq 0 ]]; then
|
||||
SUCCESS_RESULT_COUNT=$((SUCCESS_RESULT_COUNT + 1))
|
||||
fi
|
||||
echo "Result: $(expr $FILE_COUNT - $SUCCESS_RESULT_COUNT) / $FILE_COUNT" > counter
|
||||
done
|
||||
cat counter
|
||||
|
||||
9
.github/workflows/publish.yml
vendored
9
.github/workflows/publish.yml
vendored
@ -3,7 +3,7 @@ name: Publish
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/workflows/publish.yml'
|
||||
- ".github/workflows/publish.yml"
|
||||
push:
|
||||
branches:
|
||||
- trunk
|
||||
@ -13,6 +13,13 @@ env:
|
||||
CARGO_TERM_COLOR: always
|
||||
RUST_BACKTRACE: full
|
||||
|
||||
# Every time a PR is pushed to, cancel any previous jobs. This
|
||||
# makes us behave nicer to github and get faster turnaround times
|
||||
# on PRs that are pushed to multiple times in rapid succession.
|
||||
concurrency:
|
||||
group: ${{github.workflow}}-${{github.ref}}
|
||||
cancel-in-progress: ${{github.event_name == 'pull_request'}}
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
7
.github/workflows/shaders.yml
vendored
7
.github/workflows/shaders.yml
vendored
@ -18,6 +18,13 @@ env:
|
||||
# We don't include the 4th version number, as it's not used in any URL.
|
||||
VULKAN_SDK_VERSION: "1.4.313"
|
||||
|
||||
# Every time a PR is pushed to, cancel any previous jobs. This
|
||||
# makes us behave nicer to github and get faster turnaround times
|
||||
# on PRs that are pushed to multiple times in rapid succession.
|
||||
concurrency:
|
||||
group: ${{github.workflow}}-${{github.ref}}
|
||||
cancel-in-progress: ${{github.event_name == 'pull_request'}}
|
||||
|
||||
jobs:
|
||||
naga-validate-windows:
|
||||
name: "Validate: HLSL"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user