CI/CD: Fix .mozbuild caching

This commit is contained in:
daijro 2024-08-14 05:29:32 -05:00
parent 80a657268e
commit 726fcb66db

View file

@ -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