Skip to content

Commit 6e42b19

Browse files
authored
Update main.yml
1 parent 9266aaf commit 6e42b19

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,22 +66,22 @@ jobs:
6666
./*.so
6767
6868
build-ios-v2:
69-
runs-on: macos-11
69+
runs-on: macos-latest
7070
steps:
7171
- name: Check out repository od
7272
uses: actions/checkout@v2
7373
- name: Setup Xcode version
7474
uses: maxim-lobanov/setup-xcode@v1.3.0
7575
with:
76-
xcode-version: 13.0
76+
xcode-version: latest-stable
7777
- name: Set variables
7878
run: |
7979
HASH=$(cat SNAPSHOT_HASH)
8080
echo "SNAPSHOT_HASH=$HASH" >> $GITHUB_ENV
8181
- name: Install tools
8282
run: |
8383
brew update
84-
brew install libzip openssl libplist autoconf automake libtool autoconf-archive pkg-config
84+
brew install libzip openssl libplist autoconf automake libtool autoconf-archive pkg-config ninja
8585
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/opt/openssl@1.1/lib/pkgconfig
8686
git clone https://github.com/libimobiledevice/libplist
8787
cd libplist && ./autogen.sh --without-cython && sudo make install && cd ..
@@ -111,7 +111,7 @@ jobs:
111111
gclient sync
112112
reflutter ${{env.SNAPSHOT_HASH}} -l
113113
- name: ninja build Flutter.framework
114-
run: export PATH=$PATH:`pwd`/depot_tools && sudo xcode-select -s /Applications/Xcode_13.0.app && customEngine/src/flutter/tools/gn --ios --ios-cpu=arm64 --runtime-mode=release && ninja -C customEngine/src/out/ios_release
114+
run: export PATH=$PATH:`pwd`/depot_tools && sudo xcode-select -s /Applications/Xcode.app && customEngine/src/flutter/tools/gn --ios --ios-cpu=arm64 --runtime-mode=release && ninja -C customEngine/src/out/ios_release
115115
- name: Move to release
116116
run: |
117117
cp customEngine/src/out/ios_release/Flutter.framework/Flutter Flutter
@@ -183,22 +183,22 @@ jobs:
183183
./*.so
184184
185185
build-ios-v3:
186-
runs-on: macos-11
186+
runs-on: macos-latest
187187
steps:
188188
- name: Check out repository od
189189
uses: actions/checkout@v2
190190
- name: Setup Xcode version
191191
uses: maxim-lobanov/setup-xcode@v1.3.0
192192
with:
193-
xcode-version: 13.0
193+
xcode-version: latest-stable
194194
- name: Set variables
195195
run: |
196196
HASH=$(cat SNAPSHOT_HASH)
197197
echo "SNAPSHOT_HASH=$HASH" >> $GITHUB_ENV
198198
- name: Install tools
199199
run: |
200200
brew update
201-
brew install libzip openssl libplist autoconf automake libtool autoconf-archive pkg-config
201+
brew install libzip openssl libplist autoconf automake libtool autoconf-archive pkg-config ninja
202202
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/opt/openssl@1.1/lib/pkgconfig
203203
git clone https://github.com/libimobiledevice/libplist
204204
cd libplist && ./autogen.sh --without-cython && sudo make install && cd ..
@@ -228,7 +228,7 @@ jobs:
228228
gclient sync
229229
reflutter ${{env.SNAPSHOT_HASH}} -l patchDump
230230
- name: ninja build Flutter.framework
231-
run: export PATH=$PATH:`pwd`/depot_tools && sudo xcode-select -s /Applications/Xcode_13.0.app && customEngine/src/flutter/tools/gn --ios --ios-cpu=arm64 --runtime-mode=release && ninja -C customEngine/src/out/ios_release
231+
run: export PATH=$PATH:`pwd`/depot_tools && sudo xcode-select -s /Applications/Xcode.app && customEngine/src/flutter/tools/gn --ios --ios-cpu=arm64 --runtime-mode=release && ninja -C customEngine/src/out/ios_release
232232
- name: Move to release
233233
run: |
234234
cp customEngine/src/out/ios_release/Flutter.framework/Flutter Flutter

0 commit comments

Comments
 (0)