Christian Legnitto
73ae823661
Update mac target in CI to aarch64-apple-darwin
...
The `macOS-latest` images on GitHub are arm:
```
Current runner version: '2.324.0'
Operating System
macOS
14.7.5
23H527
Runner Image
Image: macos-14-arm64
```
2025-06-12 12:10:19 +00:00
Firestar99
fbe8893249
ci: replace spirv-tools prebuilds with vulkan sdk from lunarg
2025-06-11 20:15:13 +00:00
Firestar99
77070b70b4
ci: move testing difftests to difftest ci
2025-06-05 10:29:25 +00:00
Firestar99
27564b0a32
ci: don't test example-runner-*, they have no tests, just check them
2025-06-05 10:29:25 +00:00
Firestar99
bf6f369edd
ci: test with "use-installed-tools"
2025-06-05 10:29:25 +00:00
Firestar99
88cc8e6224
ci: check lockfile of difftests
2025-06-05 10:29:25 +00:00
Firestar99
08a2ce5976
ci: separate out android build
2025-06-05 10:29:25 +00:00
Christian Legnitto
d9594d1b28
Split compiletests and difftests into parallel CI jobs
2025-06-05 10:29:25 +00:00
Christian Legnitto
4e0da3fc0d
Add differential testing harness
...
This runs wgsl shaders and rust shaders and compares the output.
If the output differs, the test fails. Differential testing is better
than snapshot testing or golden file testing as there are no reference
files to get outdated.
2025-06-04 15:15:45 +00:00
Firestar99
32088c84f7
fix ci step Rustfmt compiletests
2025-06-04 11:21:47 +00:00
Firestar99
609f380f32
ci: update ubuntu runners to 24.04
2025-04-18 11:42:43 +00:00
Christian Legnitto
d5754d0426
Add tracing to rustc_codegen_spirv
...
Fixes https://github.com/Rust-GPU/rust-gpu/issues/192
2025-01-21 10:50:02 -04:00
Eduard-Mihai Burtescu
1d76d59471
ci: update EmbarkStudios/cargo-deny-action to v2.
2024-12-18 10:46:51 +00:00
Eduard-Mihai Burtescu
5279b19a51
rustup: update to nightly-2024-06-08 (~1.80).
2024-12-18 10:46:51 +00:00
Eduard-Mihai Burtescu
49ef5c3ed0
Use an auto-patched copy of rustc_codegen_ssa (dubbed pqp_cg_ssa).
2024-12-18 10:46:51 +00:00
Firestar99
82a0f69008
ci: make cargo-apk use stable to satisfy rustc requirement
2024-12-17 19:20:41 +00:00
Zanciks
9be942e967
Blocking cargo build dev on Mac
2024-11-10 23:54:55 +00:00
Zanciks
9ece6ff3c6
Added non release (dev) shader build
...
Updated ci.yaml to include a cargo build/run of example-runner-wgpu-builder in a dev profile (no --release)
2024-11-10 23:54:55 +00:00
Eduard-Mihai Burtescu
8b753aa8ce
ci: enable GitHub Actions for merge queues.
2024-11-07 15:45:30 +00:00
Christian Legnitto
de03795411
Use free CI runner for lint ( #11 )
2024-09-16 22:54:23 -04:00
Christian Legnitto
e54dd75fb7
Initial changes for the handoff from Embark to the community. ( #1 )
...
* Change URLs
* Switch away from paid runners.
* Drop copyright from MIT license. Similar to the Rust project. See the git history of
https://github.com/rust-lang/rust/blob/master/LICENSE-MIT
2024-07-18 11:21:15 -04:00
Jake Shadle
e96418f9fa
Update spirv-tools ( #1127 )
...
* Update to spirv-tools 0.10.0
* Use pre-built binaries from spirv-tools-rs
* Oops
* Target != host for android
* Use non-ancient ubuntu
* Oh right
* Update expected output
* Address feedback
* Oops
* Cancel actions when new commits are pushed
* Update CHANGELOG
* Fixup
2024-02-07 07:46:23 +00:00
Jake Shadle
3bd121ef25
Use single test job for branch protections
2024-02-05 20:01:47 +02:00
Christian Legnitto
f955221493
Add ignore and no_run to get cargo test to pass. ( #1101 )
...
* Add changelog entry and failing CI.
* Add ignore and no_run to get `cargo test` to pass.
2024-01-24 12:55:58 +01:00
Fredrik Fornwall
f003cc106d
Install required android platform in CI ( #1120 )
2024-01-24 12:37:05 +01:00
Eduard-Mihai Burtescu
26fcbc0b67
spirv-builder: try getting the docs.rs doc build to succeed (by making rustc_codegen_spirv optional).
2023-07-15 01:03:08 +03:00
Eduard-Mihai Burtescu
bc40662167
ci: add custom lint for spirv-std building with -Z minimal-versions.
2023-05-19 15:19:57 +03:00
Eduard-Mihai Burtescu
791be4b5d7
ci: move custom lint from ci.yaml to lint.sh.
2023-05-19 15:19:57 +03:00
Eduard-Mihai Burtescu
98c1f3da6f
ci: rename clippy.sh to lint.sh.
2023-05-19 15:19:57 +03:00
Johan Andersson
a64857af02
Faster Windows CI with 16 core runners
...
Attempted this back in #923 & 718aa89edf but ran into some unknown issues with it. This attempts it again to see if GitHub has resolved the issues.
2023-04-24 21:37:40 +03:00
Johan Andersson
ad4732b899
Faster Mac CI with new XL builders
...
Use 12 core machines instead of 3 core.
2023-04-24 21:27:45 +03:00
Eduard-Mihai Burtescu
9cd0b2759f
example-runner-wgpu: transition from ndk-glue to android-activity.
2023-03-22 20:51:18 +02:00
Eduard-Mihai Burtescu
b3c280424c
Migrate rustc_codegen_spirv env vars to codegen args.
2022-12-09 11:46:27 +02:00
Marijn Suijten
2094a71667
CI/android: Select wgpu example by package name instead of manifest path
...
Specifying a manifest path still allows `cargo` and `cargo-apk` to find the workspace a package belongs to. We've decided that properly implementing [package selection](https://doc.rust-lang.org/cargo/commands/cargo-build.html#package-selection ) between `cargo-apk` and `cargo-subcommand` would be [nontrivial](https://github.com/dvc94ch/cargo-subcommand/pull/23/files#diff-23af5356f6001cd3993cd3c801fb7716ea02d1e504081b9fb569332db6107e80R53-R57 ) and ended up requiring the package to be selected explicitly via `-p` for now.
2022-11-24 07:52:12 -08:00
Eduard-Mihai Burtescu
e206122a36
ci: further update spirv-tools to 20221024 (for better errors).
2022-10-28 17:28:50 +03:00
Jake Shadle
fb5893a583
Fix linux download
2022-10-28 17:28:50 +03:00
Jake Shadle
9d1f87825d
Update spirv-tools installs to latest-ish
2022-10-28 17:28:50 +03:00
Johan Andersson
35df2de639
Optimise CI with faster Linux machines ( #923 )
...
* Optimise CI with faster machines
Build on 16 vCPU machine instead of the default 4 vCPU, using GitHub Action's beta of GitHub-hosted larger runner.
* Use Windows runner
* Remove windows custom runner
2022-10-01 03:11:00 +02:00
Sylvester Hesp
7347e697fa
Removed +stable workaround
...
Not needed anymore as libc is is no longer giving issues with this nightly version
2022-08-17 20:54:04 +03:00
Eduard-Mihai Burtescu
3cd665a873
Use the same official SPIRV-Tools builds for macOS CI too.
2022-08-17 19:24:57 +03:00
Eduard-Mihai Burtescu
d3384ef1e5
Attempt to unbreak CI (Android / libc 0.2.127).
2022-08-06 13:09:43 +03:00
Johan Andersson
685c79a972
Upgrade SPIRV-Tools prebuild to 2022-04-14 ( #867 )
...
For Linux and Windows, Mac CI uses latest installed from brew.
Also added comment about how/where to get the download link for next upgrade.
Resolves : #866
2022-04-19 11:47:37 +00:00
Eduard-Mihai Burtescu
04146858ce
ci: also test --target-env vulkan1.2.
2021-11-04 11:54:26 +02:00
Ashley Hauck
a93d6e0f2a
Add sample_bias and gather functions ( #704 )
...
* Add sample_bias function
* Update line numbers
* Add gather function
* Update spirv-tools
CI was failing on "Capability SampledRect is not allowed by Vulkan 1.1
specification (or requires extension)", except locally it was fine, and
I have more up to date spirv-tools than CI, so try bumping the CI
version to see if it's just an out-of-date spirv-val
* Fix gather() in vulkan
* Convert compiler valication into marker traits
2021-08-06 15:26:30 +02:00
Ashley Hauck
ca53cbefd8
Fix android CI ( #701 )
2021-08-02 11:00:25 +02:00
XAMPPRocky
e3720294de
Produce spirv-std API docs with all features ( #653 )
2021-06-09 09:30:07 +02:00
Ashley Hauck
fcf6ee76c8
Reduce CI times ( #637 )
...
* Reduce CI times
* Reduce RUSTUP_UNPACK_RAM
* Set RUSTUP_IO_THREADS=1
* Include https://github.com/EmbarkStudios/ash-molten/pull/57 This fixes github API rate limit errors
* Inline test.sh to show timings for each step and generally have a less-jank UI
2021-05-31 11:17:34 +02:00
Ashley Hauck
6bff395680
Build the wgpu shader at runtime ( #627 )
...
* Build the wgpu shader at runtime
2021-05-21 12:09:56 +00:00
Ashley Hauck
1431c18b9d
Move disassemble tests to compiletest ( #609 )
...
* Move disassemble tests to compiletest
* Fix problematic tests
* Add newlines
2021-04-30 09:07:45 +02:00
XAMPPRocky
4c8e50d943
Add --no-deps to cargo doc check ( #604 )
...
By default `cargo doc` documents all crates in the graph, including dependencies, which causes it to take a significant amount of time (~12 minutes according to CI)
2021-04-27 13:27:44 +00:00