From 726fcb66dbcb722567f38d10f3c616e3c4a1901f Mon Sep 17 00:00:00 2001 From: daijro Date: Wed, 14 Aug 2024 05:29:32 -0500 Subject: [PATCH] CI/CD: Fix .mozbuild caching --- .github/workflows/build.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7620f1e..e6dd481 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,8 +30,8 @@ jobs: sudo apt-get update sudo apt-get install -y msitools p7zip-full aria2 - - name: Cache .mozbuild - uses: actions/cache@v2 + - name: Restore .mozbuild cache + uses: actions/cache/restore@v3 with: path: ${{ env.MOZBUILD_PATH }} key: ${{ runner.os }}-mozbuild-${{ hashFiles('**/Makefile') }} @@ -44,6 +44,12 @@ jobs: make mozbootstrap mkdir -p dist + - name: Save .mozbuild cache + uses: actions/cache/save@v3 + with: + path: ${{ env.MOZBUILD_PATH }} + key: ${{ runner.os }}-mozbuild-${{ hashFiles('**/Makefile') }} + - name: Build run: | python3 ./multibuild.py --target linux windows macos --arch x86_64