From d6bf677bb10b2ad8ebc50f98c5262f68d986914b Mon Sep 17 00:00:00 2001 From: Constrat <56174894+Constrat@users.noreply.github.com> Date: Sun, 14 Sep 2025 14:32:51 +0200 Subject: [PATCH] ci: add caching for macos maadeps --- .github/workflows/ci.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d62242b989..d235fc61cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -225,14 +225,14 @@ jobs: git submodule update --init --depth 1 3rdparty/EmulatorExtras git submodule update --init --depth 1 src/maa-cli - - name: Cache MaaDeps and Toolchain + - name: Cache MaaDeps id: cache-maadeps uses: actions/cache@v4 with: path: ./MaaDeps key: ${{ runner.os }}-${{ matrix.arch == 'x86_64' && 'x64' || 'arm64' }}-maadeps-${{ hashFiles('tools/maadeps-download.py') }} - - name: Bootstrap MaaDeps and Toolchain + - name: Bootstrap MaaDeps if: steps.cache-maadeps.outputs.cache-hit != 'true' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -344,12 +344,18 @@ jobs: with: show-progress: false - # ninja 1.13.1 is already installed and up-to-date. To reinstall 1.13.1, run: brew reinstall ninja + # ninja 1.13.1 is already installed and up-to-date. # - name: Install Dependencies # run: | # brew install ninja - # Caching not necessary on macOS runner + - name: Cache MaaDeps + id: cache-maadeps + uses: actions/cache@v4 + with: + path: ./MaaDeps + key: ${{ runner.os }}-${{ matrix.arch == 'x86_64' && 'x64' || 'arm64' }}-maadeps-${{ hashFiles('tools/maadeps-download.py') }} + - name: Bootstrap MaaDeps run: | [[ ${{ matrix.arch }} = "arm64" ]] && triplet="arm64-osx" || triplet="x64-osx"