mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-10 22:38:44 +02:00
ci: only run what a change affects, consolidate jobs (#3674)
* ci: only run what a change affects, consolidate jobs - detect affected plugins from changed files and Cargo.lock dependency trees - test/lint Rust per platform in shards instead of one job per plugin - fold check-generated-files into lint-javascript, fmt into a single job - skip fat LTO in integration test builds, single ABI in test-android * ci: run e2e on bumps, use published tauri CLI, PR-safe pnpm cache - trigger e2e on Cargo/pnpm lockfile and manifest changes - install the latest 2.x tauri-cli with cargo-binstall in integration tests - add setup-pnpm action: restore the store everywhere, save only on v2/v3 * fix clippy, ios build * fix bumps [skip ci]
This commit is contained in:
1 parent
974af951a5
commit
9a74a78c71
18 files changed
+600
-630
No files matched your search
@@ -27,21 +27,16 @@ jobs:
|
||||
matrix:
|
||||
platform: [ubuntu-latest, macos-latest, windows-latest]
|
||||
|
||||
# No caches on purpose: this workflow only runs on pull requests, so anything it saved
|
||||
# would live on the merge ref where no other run can restore it, while still counting
|
||||
# against the repository's 10 GB cache limit and evicting entries that `v2`/`v3` saved.
|
||||
# Nothing is saved to the cache on purpose: this workflow only runs on pull requests, so
|
||||
# anything it saved would live on the merge ref where no other run can restore it, while
|
||||
# still counting against the repository's 10 GB cache limit and evicting entries that
|
||||
# `v2`/`v3` saved. Restoring is fine, as setup-pnpm does with the pnpm store.
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- uses: dtolnay/rust-toolchain@1.90
|
||||
|
||||
- uses: actions/setup-node@v7
|
||||
with:
|
||||
node-version: 'lts/*'
|
||||
|
||||
- uses: pnpm/action-setup@v6
|
||||
with:
|
||||
run_install: true
|
||||
- uses: ./.github/actions/setup-pnpm
|
||||
|
||||
- uses: actions/setup-java@v5
|
||||
with:
|
||||
@@ -71,8 +66,10 @@ jobs:
|
||||
- name: build API
|
||||
run: pnpm build
|
||||
|
||||
# A release build, so R8 runs with the plugins' ProGuard rules, of a single ABI: the
|
||||
# other three would only repeat the (uncached) release build of the Rust code.
|
||||
- name: build APK
|
||||
working-directory: ./examples/api
|
||||
run: pnpm tauri android build
|
||||
run: pnpm tauri android build --target aarch64
|
||||
env:
|
||||
NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
|
||||
Reference in new issue
Block a user