summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-11-12 03:17:02 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-11-12 03:17:02 +0100
commitae2d59ae96ba1ec2daf6979beff0e3913ba9e0b8 (patch)
treee1618af533c3430c7f87c819b1455663ade90199 /.github
parent178521e8121d6f54dbaf2d0dbeb3892f7555b96a (diff)
downloadiced-ae2d59ae96ba1ec2daf6979beff0e3913ba9e0b8.tar.gz
iced-ae2d59ae96ba1ec2daf6979beff0e3913ba9e0b8.tar.bz2
iced-ae2d59ae96ba1ec2daf6979beff0e3913ba9e0b8.zip
Add `check` workflow to ensure `iced_widget` crate compiles
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/check.yml29
-rw-r--r--.github/workflows/test.yml21
2 files changed, 30 insertions, 20 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
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 215b616b..a08033c9 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -1,7 +1,7 @@
name: Test
on: [push, pull_request]
jobs:
- native:
+ all:
runs-on: ${{ matrix.os }}
strategy:
matrix:
@@ -22,22 +22,3 @@ jobs:
run: |
cargo test --verbose --workspace
cargo test --verbose --workspace --all-features
-
- web:
- 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