mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-03-09 18:16:23 -04:00
* move Rust backend to rspc * move server to Axum + remove parts of old bridge * move frontend over to @rspc/client * move core to rspc + update deps * fix Typescript errors + upgrade deps * document invalidate_query! macro * general cleanup + upgrade to PCR 0.6.0 * prisma error handling * upgrade to rspc 0.0.4 * update vite-plugin-ssr * fix typescript * fix builds * put landing page app name back * hardcode ffmpeg version on Windows * rename 'command' to 'mutation' to line up with react-query terminology * upgrade rspc to v0.0.5 + fix types * use shared ffmpeg binaries * general Typescript cleanup * fix clippy workflow failing due to tauri proc-macro Co-authored-by: Brendan Allan <brendonovich@outlook.com>
61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
name: Rust Clippy check
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
paths:
|
|
- '**.rs'
|
|
- '**.toml'
|
|
- ./.github/workflows
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
CARGO_INCREMENTAL: 1
|
|
SPACEDRIVE_CUSTOM_APT_FLAGS: --no-install-recommends
|
|
SPACEDRIVE_SKIP_PNPM_CHECK: true
|
|
|
|
jobs:
|
|
clippy_check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Rust stable
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
profile: minimal
|
|
override: true
|
|
components: clippy
|
|
|
|
- name: Cache Rust Dependencies
|
|
uses: Swatinem/rust-cache@v1
|
|
with:
|
|
sharedKey: core-v1-${{ hashFiles('**/Cargo.lock') }}
|
|
|
|
- name: Run 'setup-system.sh' script
|
|
run: ./.github/scripts/setup-system.sh
|
|
|
|
- name: Cache Prisma codegen
|
|
id: cache-prisma
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: ./core/src/prisma.rs
|
|
key: prisma-${{ hashFiles('./core/prisma/Cargo.toml', './core/prisma/schema.prisma', './core/prisma/src/main.rs') }}
|
|
|
|
- name: Generate Prisma client
|
|
working-directory: core
|
|
if: steps.cache-prisma.outputs.cache-hit != 'true'
|
|
run: cargo run -p prisma-cli --release -- generate
|
|
|
|
# This is do the proc-macro `tauri::generate_context!()` doesn't panic
|
|
- name: Create fake `dist` folder
|
|
run: mkdir ./apps/desktop/dist
|
|
|
|
- name: Run Clippy
|
|
uses: actions-rs/clippy-check@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
args: --all-features
|