-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2134 from iced-rs/fix/widget-crate
Fix standalone compilation of `iced_renderer` crate
- Loading branch information
Showing
3 changed files
with
31 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters