mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-23 11:36:13 +02:00
9606089b2a
* init geolocation plugin * ios impl (w/o js api) * generate ts api * use newer tauri commit * add temporary postinstall * include src in files * guest-js * just ship dist-js for now * fix watcher * fix android compile error * fix android build for real * fix heading type * initial getCurrentPosition android impl (wip) * prevent panics if errors (strings) are sent over the channel * Add android watchPosition implementation * init haptics plugin (android) * ios and new apis (ANDROID IS LIKELY BROKEN - MAY NOT EVEN COMPILE) * use tauri-specta that accounts for raw fn arg idents * add complete android support (it's not working great due to random soft-/hardware support) * fix(haptics): Fix the NotificationFeedbackType::Success and Version (#1) * Fix success feedback and version * Apply suggestions from code review * Update package.json --------- Co-authored-by: Fabian-Lars <118197967+FabianLars-crabnebula@users.noreply.github.com> * android: improve permission callback handling * keep track of ongoing perms requests * rebuild * license headers * rm sqlite feat * fmt * what diff u talkin bout? * ignore dist-js again * fix audits * dedupe api.js * clippy * changefiles * readmes * clean up todos * rm dsstore * rm wrong feats * mirror * covector * rebuild * ios requires the wry feature * lint * update lock --------- Co-authored-by: fabianlars <fabianlars@fabianlars.de> Co-authored-by: Brendan Allan <brendonovich@outlook.com> Co-authored-by: Naman Garg <155433377+naman-crabnebula@users.noreply.github.com> Co-authored-by: Lucas Nogueira <lucas@crabnebula.dev>
182 lines
5.8 KiB
YAML
182 lines
5.8 KiB
YAML
# Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
name: Lint Rust
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- v1
|
|
- v2
|
|
paths:
|
|
- ".github/workflows/lint-rust.yml"
|
|
- "plugins/*/src/**"
|
|
- "!plugins/*/src/api-iife.js"
|
|
- "**/Cargo.toml"
|
|
pull_request:
|
|
branches:
|
|
- v1
|
|
- v2
|
|
paths:
|
|
- ".github/workflows/lint-rust.yml"
|
|
- "plugins/*/src/**"
|
|
- "!plugins/*/src/api-iife.js"
|
|
- "**/Cargo.toml"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
changes:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pull-requests: read
|
|
outputs:
|
|
packages: ${{ steps.filter.outputs.changes }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dorny/paths-filter@v2
|
|
id: filter
|
|
with:
|
|
filters: |
|
|
tauri-plugin-authenticator:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/authenticator/**
|
|
tauri-plugin-autostart:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/autostart/**
|
|
tauri-plugin-cli:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/cli/**
|
|
tauri-plugin-clipboard-manager:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/clipboard-manager/**
|
|
tauri-plugin-deep-link:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/deep-link/**
|
|
tauri-plugin-dialog:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/dialog/**
|
|
- plugins/fs/**
|
|
tauri-plugin-fs:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/fs/**
|
|
tauri-plugin-geolocation:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/geolocation/**
|
|
tauri-plugin-global-shortcut:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/global-shortcut/**
|
|
tauri-plugin-haptics:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/haptics/**
|
|
tauri-plugin-http:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/http/**
|
|
- plugins/fs/**
|
|
tauri-plugin-localhost:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/localhost/**
|
|
tauri-plugin-log:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/log/**
|
|
tauri-plugin-notification:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/notification/**
|
|
tauri-plugin-os:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/os/**
|
|
tauri-plugin-persisted-scope:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/persisted-scope/**
|
|
- plugins/fs/**
|
|
tauri-plugin-positioner:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/positioner/**
|
|
tauri-plugin-process:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/process/**
|
|
tauri-plugin-shell:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/shell/**
|
|
tauri-plugin-single-instance:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/single-instance/**
|
|
tauri-plugin-sql:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/sql/**
|
|
tauri-plugin-store:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/store/**
|
|
tauri-plugin-stronghold:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/stronghold/**
|
|
tauri-plugin-updater:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/updater/**
|
|
tauri-plugin-upload:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/upload/**
|
|
tauri-plugin-websocket:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/websocket/**
|
|
tauri-plugin-window-state:
|
|
- .github/workflows/lint-rust.yml
|
|
- plugins/window-state/**
|
|
|
|
clippy:
|
|
needs: changes
|
|
if: ${{ needs.changes.outputs.packages != '[]' && needs.changes.outputs.packages != '' }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
package: ${{ fromJSON(needs.changes.outputs.packages) }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: install webkit2gtk and libudev for [authenticator]
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libudev-dev
|
|
|
|
- name: Install clippy with stable toolchain
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: clippy
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
|
|
- name: create dummy dist
|
|
working-directory: examples/api
|
|
run: mkdir dist
|
|
|
|
- name: clippy ${{ matrix.package }}
|
|
if: matrix.package != 'tauri-plugin-sql'
|
|
run: cargo clippy --package ${{ matrix.package }} --all-targets -- -D warnings
|
|
|
|
- name: clippy ${{ matrix.package }} mysql
|
|
if: matrix.package == 'tauri-plugin-sql'
|
|
run: cargo clippy --package ${{ matrix.package }} --all-targets --no-default-features --features mysql -- -D warnings
|
|
|
|
- name: clippy ${{ matrix.package }} postgres
|
|
if: matrix.package == 'tauri-plugin-sql'
|
|
run: cargo clippy --package ${{ matrix.package }} --all-targets --no-default-features --features postgres -- -D warnings
|
|
|
|
fmt:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install rustfmt with nightly toolchain
|
|
uses: dtolnay/rust-toolchain@nightly
|
|
with:
|
|
components: rustfmt
|
|
|
|
- name: Check formatting
|
|
run: cargo fmt --all -- --check
|