0
0
mirror of https://github.com/phpv8/v8js.git synced 2025-01-23 11:41:52 +00:00

Fix missing access and directory on cache restoration

This commit is contained in:
Joshua Behrens 2024-10-26 16:47:49 +02:00
parent 7900314868
commit 573858f73e
No known key found for this signature in database
GPG Key ID: DD28BD85EE8F67DD

View File

@ -28,6 +28,11 @@ jobs:
runs-on: ${{ matrix.operating-system }}
steps:
- name: Prepare cache folder v8 ${{ matrix.v8-versions }}
run: |
sudo mkdir -p /opt/v8/self-built/{lib,include}
sudo chown -R $(id -u):$(id -g) /opt/v8/self-built
- name: Restore cache v8 ${{ matrix.v8-versions }} build
id: v8-build-cache
uses: actions/cache/restore@v4
@ -59,16 +64,13 @@ jobs:
# Build
ninja -C out.gn/x64.release/
# Install to /opt/v8/self-built
sudo mkdir -p /opt/v8/self-built/{lib,include}
if [[ "${{ runner.os }}" == "macOS" ]]; then
LIB_EXT=dylib
else
LIB_EXT=so
fi
sudo cp out.gn/x64.release/lib*.${LIB_EXT} out.gn/x64.release/*_blob.bin out.gn/x64.release/icudtl.dat /opt/v8/self-built/lib/
sudo cp -R include/* /opt/v8/self-built/include/
cp out.gn/x64.release/lib*.${LIB_EXT} out.gn/x64.release/*_blob.bin out.gn/x64.release/icudtl.dat /opt/v8/self-built/lib/
cp -R include/* /opt/v8/self-built/include/
# Go back to origin
cd "${GITHUB_WORKSPACE}"