File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 3131 runs-on : ${{ matrix.operating-system }}
3232
3333 steps :
34+ - name : Prepare cache folder v8 ${{ matrix.v8-versions }}
35+ run : |
36+ sudo mkdir -p /opt/v8/self-built/{lib,include}
37+ sudo chown -R $(id -u):$(id -g) /opt/v8/self-built
38+
3439 - name : Restore cache v8 ${{ matrix.v8-versions }} build
3540 id : v8-build-cache
3641 uses : actions/cache/restore@v4
@@ -62,16 +67,13 @@ jobs:
6267 # Build
6368 ninja -C out.gn/x64.release/
6469
65- # Install to /opt/v8/self-built
66- sudo mkdir -p /opt/v8/self-built/{lib,include}
67-
6870 if [[ "${{ runner.os }}" == "macOS" ]]; then
6971 LIB_EXT=dylib
7072 else
7173 LIB_EXT=so
7274 fi
73- 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/
74- sudo cp -R include/* /opt/v8/self-built/include/
75+ 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/
76+ cp -R include/* /opt/v8/self-built/include/
7577
7678 # Go back to origin
7779 cd "${GITHUB_WORKSPACE}"
You can’t perform that action at this time.
0 commit comments