Check benchmarks only instead of testing them in CI

This commit is contained in:
Héctor Ramón Jiménez 2024-04-07 13:48:23 +02:00
parent bcd6873b37
commit 5e01d767c5
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 13 additions and 5 deletions

View file

@ -1,13 +1,13 @@
name: Check
on: [push, pull_request]
jobs:
widget:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v2
- uses: actions/checkout@master
- name: Check standalone `iced_widget` crate
run: cargo check --package iced_widget --features image,svg,canvas
- name: Check benchmarks
run: cargo check --benches --all-features
wasm:
runs-on: ubuntu-latest
@ -27,3 +27,11 @@ jobs:
run: cargo build --package todos --target wasm32-unknown-unknown
- name: Check compilation of `integration` example
run: cargo build --package integration --target wasm32-unknown-unknown
widget:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v2
- uses: actions/checkout@master
- name: Check standalone `iced_widget` crate
run: cargo check --package iced_widget --features image,svg,canvas

View file

@ -22,5 +22,5 @@ jobs:
sudo apt-get install -y libxkbcommon-dev libgtk-3-dev
- name: Run tests
run: |
cargo test --verbose --workspace --benches
cargo test --verbose --workspace --benches --all-features
cargo test --verbose --workspace
cargo test --verbose --workspace --all-features