diff options
author | 2023-11-12 03:32:54 +0100 | |
---|---|---|
committer | 2023-11-12 03:32:54 +0100 | |
commit | 217cbce8a12024708f565718e2a9798caef0d26e (patch) | |
tree | 4745c0b1fcebe3e3ba937336db2f5d2022491bec /.github/workflows/check.yml | |
parent | 178521e8121d6f54dbaf2d0dbeb3892f7555b96a (diff) | |
parent | 9d5ff12063e05158ede74f1aec4167bf910c8730 (diff) | |
download | iced-217cbce8a12024708f565718e2a9798caef0d26e.tar.gz iced-217cbce8a12024708f565718e2a9798caef0d26e.tar.bz2 iced-217cbce8a12024708f565718e2a9798caef0d26e.zip |
Merge pull request #2134 from iced-rs/fix/widget-crate
Fix standalone compilation of `iced_renderer` crate
Diffstat (limited to '.github/workflows/check.yml')
-rw-r--r-- | .github/workflows/check.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 00000000..df9c480f --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,29 @@ +name: Check +on: [push, pull_request] +jobs: + widget: + runs-on: ubuntu-latest + steps: + - uses: hecrj/setup-rust-action@v1 + - uses: actions/checkout@master + - name: Check standalone `iced_widget` crate + run: cargo check --package iced_widget --features image,svg,canvas + + wasm: + runs-on: ubuntu-latest + env: + RUSTFLAGS: --cfg=web_sys_unstable_apis + steps: + - uses: hecrj/setup-rust-action@v1 + with: + rust-version: stable + targets: wasm32-unknown-unknown + - uses: actions/checkout@master + - name: Run checks + run: cargo check --package iced --target wasm32-unknown-unknown + - name: Check compilation of `tour` example + run: cargo build --package tour --target wasm32-unknown-unknown + - name: Check compilation of `todos` example + run: cargo build --package todos --target wasm32-unknown-unknown + - name: Check compilation of `integration` example + run: cargo build --package integration --target wasm32-unknown-unknown |