-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1284952
commit 29e788a
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,10 +37,20 @@ jobs: | |
php-version: ${{ matrix.php-versions }} | ||
coverage: none | ||
|
||
- name: Restore cache v8 ${{ matrix.v8-versions }} build | ||
id: v8-build-cache | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: /opt/v8/self-built | ||
key: ${{ runner.os }}-${{ matrix.v8-versions }}-v8-build | ||
|
||
- name: Setup Google depot tools | ||
# only needed, when v8 needs to be built | ||
if: steps.v8-build-cache.outputs.cache-hit != 'true' | ||
uses: newkdev/[email protected] | ||
|
||
- name: Build v8 ${{ matrix.v8-versions }} | ||
if: steps.v8-build-cache.outputs.cache-hit != 'true' | ||
run: | | ||
# Store extra tools somewhere undisturbing | ||
cd "$(mktemp -d)" | ||
|
@@ -66,6 +76,13 @@ jobs: | |
# Go back to origin | ||
cd "${GITHUB_WORKSPACE}" | ||
- name: Save v8 ${{ matrix.v8-versions }} build cache | ||
if: steps.v8-build-cache.outputs.cache-hit != 'true' | ||
uses: actions/cache/save@v4 | ||
with: | ||
path: /opt/v8/self-built | ||
key: ${{ steps.v8-build-cache.outputs.cache-primary-key }} | ||
|
||
- name: Build extension | ||
run: | | ||
phpize | ||
|