chore: downgrade macOS version in iOS CI to avoid "no space left" error (#6168)

* chore: dump mobile ci disk space usage

* chore: downgrade macos ci version to avoid no space left error
This commit is contained in:
Lucas.Xu 2024-09-03 15:08:09 +08:00 committed by GitHub
parent 94c033bba8
commit 735cddd64b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 9 deletions

View file

@ -21,7 +21,7 @@ on:
env:
FLUTTER_VERSION: "3.22.0"
RUST_TOOLCHAIN: "1.77.2"
RUST_TOOLCHAIN: "1.80.1"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@ -45,12 +45,12 @@ jobs:
- uses: futureware-tech/simulator-action@v3
id: simulator-action
with:
model: 'iPhone 15'
model: "iPhone 15"
shutdown_after_job: false
build-macos:
if: github.event.pull_request.head.repo.full_name != github.repository
runs-on: macos-latest
runs-on: macos-13
steps:
- name: Checkout source code
@ -79,7 +79,7 @@ jobs:
- uses: davidB/rust-cargo-make@v1
with:
version: "0.36.6"
version: "0.37.15"
- name: Install prerequisites
working-directory: frontend
@ -99,7 +99,7 @@ jobs:
- uses: futureware-tech/simulator-action@v3
id: simulator-action
with:
model: 'iPhone 15'
model: "iPhone 15"
shutdown_after_job: false
# - name: Run AppFlowy on simulator

View file

@ -26,7 +26,6 @@ private = true
script = [
"""
cd rust-lib/
rustup show
if [ "${BUILD_FLAG}" = "debug" ]; then
echo "🚀 🚀 🚀 Building iOS SDK for debug"
cargo lipo --targets ${RUST_COMPILE_TARGET} --features "${FLUTTER_DESKTOP_FEATURES}" --package=dart-ffi
@ -99,9 +98,6 @@ script = [
dart_ffi_dir= set ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/appflowy_flutter/packages/appflowy_backend/${TARGET_OS}
lib = set lib${LIB_NAME}.${LIB_EXT}
ls -a ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/target/${RUST_COMPILE_TARGET}/${BUILD_FLAG}
echo "💻 💻 💻 Copying ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/target/${RUST_COMPILE_TARGET}/${BUILD_FLAG}/${lib} to ${dart_ffi_dir}/${lib}"
rm -f ${dart_ffi_dir}/${lib}
cp ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/target/${RUST_COMPILE_TARGET}/${BUILD_FLAG}/${lib} \