Hotfix: Build app ios failed on CI/CD
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit 4dafebe684f928819190db06808cf3f489d150ae) (cherry picked from commit 121a88d5eab5a4072c5f93ad58a325c07227a6e2)
This commit is contained in:
@@ -5,6 +5,10 @@ on:
|
|||||||
|
|
||||||
name: Build dev binaries
|
name: Build dev binaries
|
||||||
|
|
||||||
|
env:
|
||||||
|
FLUTTER_VERSION: 3.16.0
|
||||||
|
XCODE_VERSION: ^15.0.1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-app:
|
build-app:
|
||||||
name: Build app
|
name: Build app
|
||||||
@@ -15,7 +19,7 @@ jobs:
|
|||||||
- os: android
|
- os: android
|
||||||
runner: ubuntu-latest
|
runner: ubuntu-latest
|
||||||
- os: ios
|
- os: ios
|
||||||
runner: macos-latest
|
runner: macos-13
|
||||||
environment: dev
|
environment: dev
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -25,7 +29,7 @@ jobs:
|
|||||||
- name: Setup flutter
|
- name: Setup flutter
|
||||||
uses: subosito/flutter-action@v2
|
uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version: "3.16.0"
|
flutter-version: ${{ env.FLUTTER_VERSION }}
|
||||||
channel: "stable"
|
channel: "stable"
|
||||||
cache: true
|
cache: true
|
||||||
cache-key: deps-${{ hashFiles('**/pubspec.lock') }} # optional, change this to force refresh cache
|
cache-key: deps-${{ hashFiles('**/pubspec.lock') }} # optional, change this to force refresh cache
|
||||||
@@ -50,6 +54,12 @@ jobs:
|
|||||||
distribution: "temurin"
|
distribution: "temurin"
|
||||||
java-version: "11"
|
java-version: "11"
|
||||||
|
|
||||||
|
- name: Select Xcode version
|
||||||
|
if: matrix.os == 'ios'
|
||||||
|
uses: maxim-lobanov/setup-xcode@v1
|
||||||
|
with:
|
||||||
|
xcode-version: ${{ env.XCODE_VERSION }}
|
||||||
|
|
||||||
- name: Setup iOS environment
|
- name: Setup iOS environment
|
||||||
if: matrix.os == 'ios'
|
if: matrix.os == 'ios'
|
||||||
run: ../scripts/setup-ios.sh
|
run: ../scripts/setup-ios.sh
|
||||||
|
|||||||
@@ -5,6 +5,10 @@ on:
|
|||||||
|
|
||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
|
env:
|
||||||
|
FLUTTER_VERSION: 3.16.0
|
||||||
|
XCODE_VERSION: ^15.0.1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: Release
|
name: Release
|
||||||
@@ -28,7 +32,7 @@ jobs:
|
|||||||
- name: Setup flutter
|
- name: Setup flutter
|
||||||
uses: subosito/flutter-action@v2
|
uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version: "3.16.0"
|
flutter-version: ${{ env.FLUTTER_VERSION }}
|
||||||
channel: "stable"
|
channel: "stable"
|
||||||
cache: true
|
cache: true
|
||||||
cache-key: deps-${{ hashFiles('**/pubspec.lock') }} # optional, change this to force refresh cache
|
cache-key: deps-${{ hashFiles('**/pubspec.lock') }} # optional, change this to force refresh cache
|
||||||
@@ -53,6 +57,12 @@ jobs:
|
|||||||
distribution: "temurin"
|
distribution: "temurin"
|
||||||
java-version: "11"
|
java-version: "11"
|
||||||
|
|
||||||
|
- name: Select Xcode version
|
||||||
|
if: matrix.os == 'ios'
|
||||||
|
uses: maxim-lobanov/setup-xcode@v1
|
||||||
|
with:
|
||||||
|
xcode-version: ${{ env.XCODE_VERSION }}
|
||||||
|
|
||||||
- name: Setup Android environment
|
- name: Setup Android environment
|
||||||
if: matrix.os == 'android'
|
if: matrix.os == 'android'
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user