From 2be3caa7c324b986215533c725710cfb987571a3 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Tue, 17 Mar 2026 20:13:53 -0700 Subject: [PATCH] Update GitHub actions --- .github/actions/setup/action.yml | 17 +++++++++-------- .github/workflows/build.yml | 18 +++++++++--------- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 0e426994b..d07d8e2f0 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -1,4 +1,5 @@ name: Magisk Setup +description: Set up the build environment for Magisk inputs: is-asset-build: required: false @@ -7,13 +8,13 @@ runs: using: "composite" steps: - name: Set up JDK 21 - uses: actions/setup-java@v4 + uses: actions/setup-java@v5 with: distribution: "temurin" java-version: "21" - name: Set up Python 3 - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: "3.x" @@ -25,7 +26,7 @@ runs: echo 'GNUMAKE=gmake' >> "$GITHUB_ENV" - name: Cache sccache - uses: actions/cache@v4 + uses: actions/cache@v5 if: ${{ github.event_name != 'pull_request' }} with: path: .sccache @@ -33,7 +34,7 @@ runs: restore-keys: sccache-${{ runner.os }}- - name: Restore sccache - uses: actions/cache/restore@v4 + uses: actions/cache/restore@v5 if: ${{ github.event_name == 'pull_request' }} with: path: .sccache @@ -63,7 +64,7 @@ runs: run: echo "GRADLE_USER_HOME=$GITHUB_WORKSPACE/.gradle" >> "$GITHUB_ENV" - name: Cache Gradle dependencies - uses: actions/cache@v4 + uses: actions/cache@v5 if: ${{ inputs.is-asset-build == 'true' && github.event_name != 'pull_request' }} with: path: | @@ -74,7 +75,7 @@ runs: restore-keys: gradle-cache- - name: Restore Gradle dependencies - uses: actions/cache/restore@v4 + uses: actions/cache/restore@v5 if: ${{ inputs.is-asset-build == 'false' || github.event_name == 'pull_request' }} with: path: | @@ -86,7 +87,7 @@ runs: enableCrossOsArchive: true - name: Cache Gradle build cache - uses: actions/cache@v4 + uses: actions/cache@v5 if: ${{ inputs.is-asset-build == 'true' && github.event_name != 'pull_request' }} with: path: .gradle/caches/build-cache-* @@ -94,7 +95,7 @@ runs: restore-keys: gradle-build-cache- - name: Restore Gradle build cache - uses: actions/cache/restore@v4 + uses: actions/cache/restore@v5 if: ${{ inputs.is-asset-build == 'false' || github.event_name == 'pull_request' }} with: path: .gradle/caches/build-cache-* diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a12646b28..e189460f8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ on: jobs: build: name: Build Magisk artifacts - runs-on: macos-15 + runs-on: macos-26 strategy: fail-fast: false steps: @@ -39,14 +39,14 @@ jobs: run: ./app/gradlew --stop - name: Upload build artifact - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@v7 with: name: ${{ github.sha }} path: out compression-level: 9 - name: Upload mapping and native debug symbols - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@v7 with: name: ${{ github.sha }}-symbols path: app/apk/build/outputs @@ -93,7 +93,7 @@ jobs: uses: actions/checkout@v6 - name: Download build artifacts - uses: actions/download-artifact@v7 + uses: actions/download-artifact@v8 with: name: ${{ github.sha }} path: out @@ -107,7 +107,7 @@ jobs: - name: Upload logs on error if: ${{ failure() }} - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@v7 with: name: "avd-logs-${{ matrix.version }}" path: | @@ -129,7 +129,7 @@ jobs: uses: actions/checkout@v6 - name: Download build artifacts - uses: actions/download-artifact@v7 + uses: actions/download-artifact@v8 with: name: ${{ github.sha }} path: out @@ -145,7 +145,7 @@ jobs: - name: Upload logs on error if: ${{ failure() }} - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@v7 with: name: "avd32-logs-${{ matrix.version }}" path: | @@ -171,7 +171,7 @@ jobs: uses: actions/checkout@v6 - name: Download build artifacts - uses: actions/download-artifact@v7 + uses: actions/download-artifact@v8 with: name: ${{ github.sha }} path: out @@ -190,7 +190,7 @@ jobs: - name: Upload logs on error if: ${{ failure() }} - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@v7 with: name: "cvd-logs-${{ matrix.device }}" path: |