Skip to content

armgit / ente

Public Imported from GitHub
0

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

Depend on rust 1.90 in CI

laurenspriemd2a0dc2573a2
diff --git a/.github/workflows/mobile-daily-internal.yml b/.github/workflows/mobile-daily-internal.yml
index 01e36d3d0d..e952c88314 100644
--- a/.github/workflows/mobile-daily-internal.yml
+++ b/.github/workflows/mobile-daily-internal.yml
@@ -8,6 +8,7 @@ on:
env:
FLUTTER_VERSION: "3.32.8"
+ RUST_VERSION: "1.90.0"
permissions:
contents: read
@@ -49,6 +50,11 @@ jobs:
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
+ - name: Install Rust ${{ env.RUST_VERSION }}
+ uses: dtolnay/rust-toolchain@stable
+ with:
+ toolchain: ${{ env.RUST_VERSION }}
+
- name: Install Flutter Rust Bridge
run: cargo install flutter_rust_bridge_codegen
diff --git a/.github/workflows/mobile-lint.yml b/.github/workflows/mobile-lint.yml
index a49d475d8f..226078167a 100644
--- a/.github/workflows/mobile-lint.yml
+++ b/.github/workflows/mobile-lint.yml
@@ -10,6 +10,7 @@ on:
env:
FLUTTER_VERSION: "3.32.8"
+ RUST_VERSION: "1.90.0"
RUSTFLAGS: -D warnings
permissions:
@@ -34,6 +35,11 @@ jobs:
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
+ - name: Install Rust ${{ env.RUST_VERSION }}
+ uses: dtolnay/rust-toolchain@stable
+ with:
+ toolchain: ${{ env.RUST_VERSION }}
+
- name: Cache
uses: actions/cache@v4
with:
diff --git a/.github/workflows/mobile-packages-lint.yml b/.github/workflows/mobile-packages-lint.yml
index 5344f6332c..bee554764a 100644
--- a/.github/workflows/mobile-packages-lint.yml
+++ b/.github/workflows/mobile-packages-lint.yml
@@ -12,6 +12,7 @@ on:
env:
FLUTTER_VERSION: "3.32.8"
+ RUST_VERSION: "1.90.0"
RUSTFLAGS: -D warnings
permissions:
@@ -103,6 +104,11 @@ jobs:
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
+ - name: Install Rust ${{ env.RUST_VERSION }}
+ uses: dtolnay/rust-toolchain@stable
+ with:
+ toolchain: ${{ env.RUST_VERSION }}
+
- name: Cache Rust dependencies
uses: actions/cache@v4
with:
@@ -234,6 +240,11 @@ jobs:
with:
submodules: recursive
+ - name: Install Rust ${{ env.RUST_VERSION }}
+ uses: dtolnay/rust-toolchain@stable
+ with:
+ toolchain: ${{ env.RUST_VERSION }}
+
- name: Cache Rust dependencies
uses: actions/cache@v4
with:
@@ -303,6 +314,12 @@ jobs:
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
+ - name: Install Rust ${{ env.RUST_VERSION }}
+ if: needs.detect-changes.outputs.lint_photos == 'true'
+ uses: dtolnay/rust-toolchain@stable
+ with:
+ toolchain: ${{ env.RUST_VERSION }}
+
- name: Cache Rust dependencies
uses: actions/cache@v4
with:
diff --git a/.github/workflows/mobile-release.yml b/.github/workflows/mobile-release.yml
index 1a547f7338..ca7fa09d51 100644
--- a/.github/workflows/mobile-release.yml
+++ b/.github/workflows/mobile-release.yml
@@ -10,6 +10,7 @@ on:
env:
FLUTTER_VERSION: "3.32.8"
+ RUST_VERSION: "1.90.0"
permissions:
contents: write
@@ -72,6 +73,11 @@ jobs:
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
+ - name: Install Rust ${{ env.RUST_VERSION }}
+ uses: dtolnay/rust-toolchain@stable
+ with:
+ toolchain: ${{ env.RUST_VERSION }}
+
- name: Install Flutter Rust Bridge
run: cargo install flutter_rust_bridge_codegen
diff --git a/.github/workflows/photos-internal-release.yml b/.github/workflows/photos-internal-release.yml
index e044d8624c..4806983051 100644
--- a/.github/workflows/photos-internal-release.yml
+++ b/.github/workflows/photos-internal-release.yml
@@ -5,6 +5,7 @@ on:
env:
FLUTTER_VERSION: "3.32.8"
+ RUST_VERSION: "1.90.0"
ANDROID_KEYSTORE_PATH: "keystore/ente_photos_key.jks"
jobs:
@@ -36,6 +37,11 @@ jobs:
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
+ - name: Install Rust ${{ env.RUST_VERSION }}
+ uses: dtolnay/rust-toolchain@stable
+ with:
+ toolchain: ${{ env.RUST_VERSION }}
+
# Android Build
- name: Setup Android signing key
uses: timheuer/base64-to-file@v1
@@ -123,4 +129,4 @@ jobs:
description: |
**Android**: [Play Store Internal](https://play.google.com/store/apps/details?id=io.ente.photos)
**iOS**: TestFlight build processing
- color: 0x00ff00
\ No newline at end of file
+ color: 0x00ff00