Add caching to windows CI and test iOS and android

This commit is contained in:
Jonathan Kelley committed 2023-07-19 13:18:45 -07:00
1 parent 72a2a1f820
commit 31cde43d6d
3 files changed
+73 -135

No files matched your search

+73
View File
@@ -83,6 +83,78 @@ jobs:
- uses: actions/checkout@v3
- run: cargo clippy --workspace --examples --tests -- -D warnings
test:
runs-on: ${{ matrix.platform.os }}
strategy:
matrix:
platform:
- {
target: x86_64-pc-windows-msvc,
os: windows-latest,
toolchain: '1.65.0',
cross: false,
command: 'test --all --tests'
}
- {
target: x86_64-unknown-linux-gnu,
os: ubuntu-latest,
toolchain: '1.65.0',
cross: false,
command: 'test --all --tests'
}
- {
target: x86_64-apple-darwin,
os: macos-latest,
toolchain: '1.65.0',
cross: false,
command: 'test --all --tests'
}
- {
target: aarch64-apple-ios,
os: macos-latest,
toolchain: '1.65.0',
cross: false,
command: 'build --package dioxus-mobile'
}
- {
target: aarch64-linux-android,
os: ubuntu-latest,
toolchain: '1.65.0',
cross: true,
command: 'build --package dioxus-mobile'
}
steps:
- uses: actions/checkout@v2
- name: install stable
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.platform.toolchain }}
target: ${{ matrix.platform.target }}
override: true
default: true
- name: install Linux dependencies
if: contains(matrix.platform.target, 'unknown-linux')
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.1 libayatana-appindicator3-dev
- uses: Swatinem/rust-cache@v2
with:
workspaces: core -> ../target
save-if: ${{ matrix.features.key == 'all' }}
- name: test
uses: actions-rs/cargo@v1
with:
use-cross: ${{ matrix.platform.cross }}
command: ${{ matrix.platform.command }}
args: --target ${{ matrix.platform.target }}
# Coverage is disabled until we can fix it
# coverage:
# name: Coverage
@@ -103,3 +175,4 @@ jobs:
# uses: codecov/codecov-action@v2
# with:
# fail_ci_if_error: false