Commit Graph

104 Commits

Author SHA1 Message Date
Firestar99
0f5b3a99ff spirv-builder: clap testing 2025-08-03 21:57:30 +02:00
Firestar99
6ecfd15cee target enum: add enum SpirvTargetEnv containing all targets 2025-08-03 21:57:30 +02:00
Christian Legnitto
f9c61f5ab5 Only run upgrade rust workflow on main repo
Fixes https://github.com/Rust-GPU/rust-gpu/issues/344
2025-07-22 09:29:40 +00:00
firestar99
d16e6ff377 ci: fix two PRs with same branch name but different forks canceling each other
Some checks failed
Rust Toolchain Upgrade / check-and-upgrade (push) Failing after 36s
2025-07-21 12:46:20 +00:00
Christian Legnitto
5bd2a999eb Add automated Rust toolchain upgrade workflow
Runs daily to check for new Rust nightly versions and creates a PR if one is available with all required components.
2025-07-20 22:39:29 +03:00
Firestar99
20052f89d9 ci: simplify clippy 2025-07-17 17:09:38 +00:00
Christian Legnitto
ad34240dd8 Vulkan on windows via swiftshader 2025-07-14 15:54:01 +00:00
Firestar99
7520e53520 ci: enable clippy for more crates 2 2025-07-11 10:01:04 +00:00
Firestar99
0458719252 ci: enable clippy for more crates 2025-07-11 10:01:04 +00:00
Nazar Mokrynskyi
35abd957ce Check status of dependencies in CI 2025-06-28 19:39:16 +00:00
Nazar Mokrynskyi
b19a8586e1 Fix CI skipping 2025-06-26 07:46:55 +00:00
Firestar99
ccb109d1dd ci: re-add spv1.3 testing 2025-06-22 12:48:23 +00:00
Firestar99
cf35ac5814 add vulkan1.3, vulkan1.4 and spv1.6 targets 2025-06-22 12:48:23 +00:00
Firestar99
61ff45d61c ci: default to bash shell 2025-06-21 22:49:07 +00:00
Firestar99
f1647acaaf ci: resolve target tuple from rustc 2025-06-21 22:49:07 +00:00
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