ci: run only fmt, clippy, and tests for the native core

This commit is contained in:
Santo Shakil 2026-07-20 21:08:58 +06:00
parent 8b22917228
commit 3da42ca655
3 changed files with 4 additions and 29 deletions

View file

@ -103,14 +103,6 @@ jobs:
github_token: ${{ steps.token.outputs.token }}
working_directory: ./native
- name: Install Flutter dependencies
working-directory: ./native/immich_native_core
run: flutter pub get
- name: Run Dart analyze
working-directory: ./native/immich_native_core
run: dart analyze
- name: Check formatting
run: cargo fmt --all --check
@ -120,26 +112,6 @@ jobs:
- name: Run tests
run: cargo test --workspace --locked
- name: Generate native bindings
run: mise //native:codegen
- name: Find generated file changes
uses: tj-actions/verify-changed-files@a1c6acee9df209257a246f2cc6ae8cb6581c1edf # v20.0.4
id: verify-native-generated-files
with:
files: |
native/crates/immich_core_ffi/include/immich_core.h
native/immich_native_core/lib/src/ffi/bindings.g.dart
- name: Verify generated files have not changed
if: steps.verify-native-generated-files.outputs.files_changed == 'true'
env:
CHANGED_FILES: ${{ steps.verify-native-generated-files.outputs.changed_files }}
run: |
echo "ERROR: Native generated files not up to date! Run 'mise //native:codegen'"
echo "Changed files: ${CHANGED_FILES}"
exit 1
script-unit-tests:
name: Scripts unit tests
needs: pre-job