From 111ae10364db8cf6d51f105fb2cd34db74444d2f Mon Sep 17 00:00:00 2001 From: Thierry Berger Date: Sun, 9 Jul 2023 23:25:10 +0200 Subject: [PATCH] fix compiling on wasm --- .github/workflows/check.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 32c459740..2ce35bbcc 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -30,12 +30,8 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - features: [ - '', - 'manage_clipboard', - 'open_url', - 'manage_clipboard,open_url', - ] + features: + ["", "manage_clipboard", "open_url", "manage_clipboard,open_url"] steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 @@ -68,12 +64,15 @@ jobs: strategy: fail-fast: false matrix: - features: [ - 'immutable_ctx', - 'manage_clipboard', - 'open_url', - 'manage_clipboard,open_url', - ] + features: + [ + "immutable_ctx", + "manage_clipboard", + "open_url", + "manage_clipboard,open_url", + ] + env: + RUSTFLAGS: --cfg=web_sys_unstable_apis steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1