mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-12-02 00:53:28 +01:00
* fix(sql): update sqlx to 0.9 to fix cargo audit cargo audit fails on RUSTSEC-2026-0459: the SQLite bundled by libsqlite3-sys 0.30 is affected by CVE-2026-119375. Only sqlx 0.9.1 accepts the fixed libsqlite3-sys (>=0.39), and it requires Rust 1.94. - update sqlx to 0.9.1 and libsqlite3-sys to 0.40. The removed runtime-tokio-rustls feature is replaced by runtime-tokio + tls-rustls-ring-webpki, which is what it enabled before, and mysql now enables mysql-rsa to keep RSA password auth - wrap frontend-provided queries in AssertSqlSafe (values are still bound parameters) and convert migrations with into_sql_str - bump the workspace MSRV and CI toolchains to 1.94 - ignore RUSTSEC-2026-0387 (crypto-bigint timing), which stronghold pulls in through iota-crypto -> k256 0.13 with no fixed release Tested clippy, tests and doc tests of the sql plugin on Linux with the sqlite, mysql and postgres features, on 1.94 and stable. Not tested against real MySQL/Postgres servers or on mobile. * update change file [skip ci] * Update .changes/sql-sqlx-0.9.md [skip ci] Co-authored-by: Fabian-Lars <30730186+FabianLars@users.noreply.github.com> * update change file [skip ci] --------- Co-authored-by: Fabian-Lars <30730186+FabianLars@users.noreply.github.com>
76 lines
2.4 KiB
YAML
76 lines
2.4 KiB
YAML
# Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
name: test android
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/test-android.yml'
|
|
- '**/android/**'
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
# 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.94
|
|
|
|
- uses: ./.github/actions/setup-pnpm
|
|
|
|
- uses: actions/setup-java@v5
|
|
with:
|
|
distribution: temurin
|
|
java-version: 21
|
|
|
|
- name: Setup NDK
|
|
uses: nttld/setup-ndk@v1
|
|
id: setup-ndk
|
|
with:
|
|
ndk-version: r25
|
|
|
|
# TODO check after https://github.com/nttld/setup-ndk/issues/518 is fixed
|
|
- name: Restore Android Symlinks
|
|
if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'macos-latest'
|
|
env:
|
|
NDK_HOST: ${{ matrix.platform == 'ubuntu-latest' && 'linux-x86_64' || 'darwin-x86_64' }}
|
|
run: |
|
|
directory="${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/$NDK_HOST/bin"
|
|
find "$directory" -type l | while read link; do
|
|
current_target=$(readlink "$link")
|
|
new_target="$directory/$(basename "$current_target")"
|
|
ln -sf "$new_target" "$link"
|
|
echo "Changed $(basename "$link") from $current_target to $new_target"
|
|
done
|
|
|
|
- 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 --target aarch64
|
|
env:
|
|
NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
|