From 57111bc913109f49fa7d5b9283e34dc26a7214bc Mon Sep 17 00:00:00 2001 From: Tony Giorgio Date: Fri, 9 Jan 2026 00:24:33 -0600 Subject: [PATCH] ci: upgrade to larger GitHub Actions runners - macOS: macos-latest -> macos-latest-xlarge (M2, 5 cores + 8 GPU) - Linux: ubuntu-latest -> ubuntu-latest-8-cores (8 CPU, 32GB RAM, 300GB SSD) This should significantly speed up Rust compilation, especially for Android builds (4 cross-compile targets) and macOS universal builds. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> --- .github/workflows/android-build.yml | 2 +- .github/workflows/desktop-build.yml | 4 ++-- .github/workflows/mobile-build.yml | 2 +- .github/workflows/release.yml | 18 +++++++++--------- .github/workflows/testflight-on-comment.yml | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/android-build.yml b/.github/workflows/android-build.yml index 55b51a338..3f411f3de 100644 --- a/.github/workflows/android-build.yml +++ b/.github/workflows/android-build.yml @@ -8,7 +8,7 @@ on: jobs: build-android: - runs-on: ubuntu-latest + runs-on: ubuntu-latest-8-cores steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/desktop-build.yml b/.github/workflows/desktop-build.yml index d9cd1b6ce..c30fc3b20 100644 --- a/.github/workflows/desktop-build.yml +++ b/.github/workflows/desktop-build.yml @@ -8,7 +8,7 @@ on: jobs: build-macos: - runs-on: macos-latest + runs-on: macos-latest-xlarge strategy: matrix: target: [universal-apple-darwin] @@ -114,7 +114,7 @@ jobs: retention-days: 5 build-linux: - runs-on: ubuntu-latest + runs-on: ubuntu-latest-8-cores steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/mobile-build.yml b/.github/workflows/mobile-build.yml index 307c80914..40e461ae4 100644 --- a/.github/workflows/mobile-build.yml +++ b/.github/workflows/mobile-build.yml @@ -8,7 +8,7 @@ on: jobs: build-ios: - runs-on: macos-latest + runs-on: macos-latest-xlarge steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c8e4d9b68..0a7651f0f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,9 +30,9 @@ jobs: fail-fast: false matrix: include: - - platform: macos-latest + - platform: macos-latest-xlarge args: --target universal-apple-darwin - - platform: ubuntu-latest + - platform: ubuntu-latest-8-cores args: "" runs-on: ${{ matrix.platform }} @@ -47,10 +47,10 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@stable with: - targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} + targets: ${{ matrix.platform == 'macos-latest-xlarge' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} - name: Cache Homebrew - if: matrix.platform == 'macos-latest' + if: matrix.platform == 'macos-latest-xlarge' uses: actions/cache@v4 with: path: | @@ -62,14 +62,14 @@ jobs: ${{ runner.os }}-brew- - name: Install sccache (macOS) - if: matrix.platform == 'macos-latest' + if: matrix.platform == 'macos-latest-xlarge' run: | brew install sccache brew link --overwrite --force sccache sccache --version - name: Install sccache (Linux) - if: matrix.platform == 'ubuntu-latest' + if: matrix.platform == 'ubuntu-latest-8-cores' run: | SCCACHE_VERSION=0.8.2 SCCACHE_URL="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/mozilla/sccache/releases/download/v${SCCACHE_VERSION}/sccache-v${SCCACHE_VERSION}-x86_64-unknown-linux-musl.tar.gz" @@ -81,14 +81,14 @@ jobs: - name: Cache sccache uses: actions/cache@v4 with: - path: ${{ matrix.platform == 'macos-latest' && '~/Library/Caches/Mozilla.sccache' || '~/.cache/sccache' }} + path: ${{ matrix.platform == 'macos-latest-xlarge' && '~/Library/Caches/Mozilla.sccache' || '~/.cache/sccache' }} key: ${{ runner.os }}-sccache-release-${{ hashFiles('**/Cargo.lock') }} restore-keys: | ${{ runner.os }}-sccache-release- ${{ runner.os }}-sccache- - name: Install dependencies (Linux) - if: matrix.platform == 'ubuntu-latest' + if: matrix.platform == 'ubuntu-latest-8-cores' run: | sudo apt-get update sudo apt-get install -y libwebkit2gtk-4.1-dev \ @@ -132,7 +132,7 @@ jobs: build-android: needs: create-release - runs-on: ubuntu-latest + runs-on: ubuntu-latest-8-cores steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/testflight-on-comment.yml b/.github/workflows/testflight-on-comment.yml index 9b46df1f1..f72da15a6 100644 --- a/.github/workflows/testflight-on-comment.yml +++ b/.github/workflows/testflight-on-comment.yml @@ -64,7 +64,7 @@ jobs: deploy-testflight: needs: check-comment if: needs.check-comment.outputs.should-deploy == 'true' - runs-on: macos-latest + runs-on: macos-latest-xlarge steps: - uses: actions/checkout@v4 with: