Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Move mobile lint to Ubuntu, split out Podfile.lock check

Manav Rathi94d9d883b413
diff --git a/.github/workflows/mobile-lint.yml b/.github/workflows/mobile-lint.yml
index 7006dce8fb..7be7f1db53 100644
--- a/.github/workflows/mobile-lint.yml
+++ b/.github/workflows/mobile-lint.yml
@@ -20,7 +20,7 @@ permissions:
jobs:
lint:
- runs-on: macos-26
+ runs-on: ubuntu-latest
steps:
- name: Checkout code and submodules
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
@@ -110,7 +110,6 @@ jobs:
(
cd "mobile/apps/$app"
flutter pub get --enforce-lockfile
- (cd ios && pod install --deployment)
if [[ "$app" != "photos" ]]; then
flutter gen-l10n
fi
diff --git a/.github/workflows/mobile-podfile-lock.yml b/.github/workflows/mobile-podfile-lock.yml
new file mode 100644
index 0000000000..24335a1d95
--- /dev/null
+++ b/.github/workflows/mobile-podfile-lock.yml
@@ -0,0 +1,45 @@
+name: "Verify Podfile.lock (Mobile)"
+
+# Verify each app's Podfile.lock is in sync with its Flutter plugins.
+
+on:
+ pull_request:
+ paths:
+ - ".github/workflows/mobile-podfile-lock.yml"
+ - "mobile/apps/*/pubspec.yaml"
+ - "mobile/apps/*/pubspec.lock"
+ - "mobile/apps/*/pubspec_overrides.yaml"
+ - "mobile/apps/*/ios/Podfile"
+ - "mobile/apps/*/ios/Podfile.lock"
+ - "mobile/packages/*/pubspec.yaml"
+ - "mobile/packages/*/ios/*.podspec"
+ - "mobile/packages/*/darwin/*.podspec"
+ workflow_dispatch:
+
+permissions:
+ contents: read
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ pod-check:
+ runs-on: macos-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
+
+ - name: Install Flutter
+ uses: ./.github/actions/setup-flutter
+
+ - name: Verify Podfile.lock is current
+ run: |
+ for app in photos auth locker; do
+ echo "Checking $app"
+ (
+ cd "mobile/apps/$app"
+ flutter pub get --enforce-lockfile
+ cd ios && pod install --deployment
+ )
+ done
diff --git a/.github/workflows/warm-caches.yml b/.github/workflows/warm-caches.yml
index cca4215d56..f1dd0155bb 100644
--- a/.github/workflows/warm-caches.yml
+++ b/.github/workflows/warm-caches.yml
@@ -51,7 +51,7 @@ jobs:
rust-flutter:
# For the cargo steps of mobile-lint.yml.
- runs-on: macos-26
+ runs-on: ubuntu-latest
defaults:
run:
working-directory: rust