forked from DioxusLabs/sdk
-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (41 loc) · 1.24 KB
/
testing.yml
File metadata and controls
46 lines (41 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Tests to make sure features are setup for running on different platforms & that features run correctly
name: Testing
on:
push:
branches:
- main
paths:
- packages/**
- examples/**
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- main
paths:
- packages/**
- examples/**
env:
CARGO_TERM_COLOR: always
jobs:
wasm:
if: github.event.pull_request.draft == false
name: WASM
runs-on: ubuntu-latest
steps:
- uses: dtolnay/rust-toolchain@1.90.0
- uses: actions/checkout@v3
- run: rustup target add wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- run: cargo build --all-targets --workspace --exclude *-example --verbose --target wasm32-unknown-unknown --all-features
# need to run tests here
desktop:
if: github.event.pull_request.draft == false
name: Desktop
runs-on: windows-latest
steps:
- uses: dtolnay/rust-toolchain@1.90.0
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- run: cargo build --all-targets --workspace --verbose --all-features
- run: cargo test --all-targets --workspace --verbose --all-features
- run: cargo test --workspace --verbose --all-features --doc