mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-27 09:44:14 +00:00
chore: Configure sccache in build workflows
This commit is contained in:
7
.github/workflows/linux-alpha-build.yml
vendored
7
.github/workflows/linux-alpha-build.yml
vendored
@@ -42,6 +42,13 @@ jobs:
|
||||
- name: Free up space
|
||||
run: sh .github/workflows/src/disk-setup-and-swap.sh
|
||||
|
||||
- name: Configure sccache
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
|
||||
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
|
||||
|
||||
- name: Install sccache
|
||||
env:
|
||||
LINK: https://github.com/mozilla/sccache/releases/download
|
||||
|
||||
8
.github/workflows/macos-alpha-build.yml
vendored
8
.github/workflows/macos-alpha-build.yml
vendored
@@ -54,6 +54,14 @@ jobs:
|
||||
path: ~/Library/Caches/Mozilla.sccache
|
||||
key: ${{ runner.os }}-sccache
|
||||
|
||||
|
||||
- name: Configure sccache
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
|
||||
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
|
||||
|
||||
- name: Install pnpm
|
||||
run: npm install -g pnpm
|
||||
|
||||
|
||||
8
.github/workflows/windows-alpha-build.yml
vendored
8
.github/workflows/windows-alpha-build.yml
vendored
@@ -63,6 +63,14 @@ jobs:
|
||||
path: ${HOME}/win-cross
|
||||
key: clang-17
|
||||
|
||||
|
||||
- name: Configure sccache
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
|
||||
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
|
||||
|
||||
- name: Setup For Windows
|
||||
if: steps.cache-win-cross.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user