summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
author9SMTM6 <44668330+9SMTM6@users.noreply.github.com>2024-09-13 13:00:18 +0200
committerGitHub <noreply@github.com>2024-09-13 13:00:18 +0200
commit08f5eb30a429b7c7e34a7d40a7a1a26dfb254e4a (patch)
treec3fdedf456e9c8abdc6d2463a49bdca216de2201 /.github
parentf658f8b02bf9433e312fb2b84cd6d2365552dbcd (diff)
Add opt-out `fragile-send-sync-non-atomic-wasm` feature for wgpu (#5098)
Note this will break people depending on eframe or egui-wgpu with --no-default-features. I don't know what to do about that to be honest. * Closes #4914 * [x] I have followed the instructions in the PR template --------- Co-authored-by: Andreas Reich <r_andreas2@web.de>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/rust.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 1e9f4009..1e8e31bb 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -5,6 +5,7 @@ name: Rust
env:
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings
+ NIGHTLY_VERSION: nightly-2024-09-11
jobs:
fmt-crank-check-test:
@@ -113,6 +114,25 @@ jobs:
- name: clippy wasm32
run: ./scripts/clippy_wasm.sh
+ # requires a different toolchain from the other checks (nightly)
+ check_wasm_atomics:
+ name: Check wasm32+atomics
+ runs-on: ubuntu-22.04
+ steps:
+ - uses: actions/checkout@v4
+ - run: sudo apt-get update && sudo apt-get install libgtk-3-dev libatk1.0-dev
+
+ - name: Set up cargo cache
+ uses: Swatinem/rust-cache@v2
+ - uses: dtolnay/rust-toolchain@master
+ with:
+ toolchain: ${{env.NIGHTLY_VERSION}}
+ targets: wasm32-unknown-unknown
+ components: rust-src
+
+ - name: Check wasm32+atomics eframe with wgpu
+ run: RUSTFLAGS='-C target-feature=+atomics' cargo +${{env.NIGHTLY_VERSION}} check -p eframe --lib --no-default-features --features wgpu --target wasm32-unknown-unknown -Z build-std=std,panic_abort
+
# ---------------------------------------------------------------------------
cargo-deny: