mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
Test android in the CI
This commit is contained in:
parent
f03507ee6a
commit
589ab56643
1 changed files with 25 additions and 0 deletions
25
.github/workflows/ci.yaml
vendored
25
.github/workflows/ci.yaml
vendored
|
|
@ -505,3 +505,28 @@ jobs:
|
|||
run: |
|
||||
. ${IDF_PATH}/export.sh
|
||||
idf.py build
|
||||
android:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Cache cargo-apk
|
||||
id: cargo-apk-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.cargo/bin/cargo-apk
|
||||
# Only build cargo-apk if not cached
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
if: steps.cargo-apk-cache.outputs.cache-hit != 'true'
|
||||
- name: Install cargo-apk
|
||||
if: steps.cargo-apk-cache.outputs.cache-hit != 'true'
|
||||
run: cargo install cargo-apk
|
||||
|
||||
- uses: ./.github/actions/setup-rust
|
||||
with:
|
||||
target: aarch64-linux-android
|
||||
|
||||
- name: Build todo demo
|
||||
run: |
|
||||
sed -i "s/#wasm# //" Cargo.toml
|
||||
cargo apk build -p todo --target aarch64-linux-android --lib
|
||||
working-directory: examples/todo/rust
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue