feat: Enable cargo workspace #27
Workflow file for this run
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
# Tests to make sure features are setup for running on different platforms & that features run correctly | |
name: Testing | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
wasm: | |
if: github.event.pull_request.draft == false | |
name: WASM | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup target add wasm32-unknown-unknown | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo build --package dioxus-std --verbose --target wasm32-unknown-unknown --no-default-features --features wasm-testing | |
# need to run tests here | |
desktop: | |
if: github.event.pull_request.draft == false | |
name: Desktop | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo build --package dioxus-std --verbose --no-default-features --features desktop-testing | |
- run: cargo test --package dioxus-std --verbose --no-default-features --features desktop-testing |