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 2828 runs-on : ${{ matrix.operating-system }}
2929
3030 steps :
31+ - name : Prepare cache folder v8 ${{ matrix.v8-versions }}
32+ run : |
33+ sudo mkdir -p /opt/v8/self-built/{lib,include}
34+ sudo chown -R $(id -u):$(id -g) /opt/v8/self-built
35+
3136 - name : Restore cache v8 ${{ matrix.v8-versions }} build
3237 id : v8-build-cache
3338 uses : actions/cache/restore@v4
@@ -59,16 +64,13 @@ jobs:
5964 # Build
6065 ninja -C out.gn/x64.release/
6166
62- # Install to /opt/v8/self-built
63- sudo mkdir -p /opt/v8/self-built/{lib,include}
64-
6567 if [[ "${{ runner.os }}" == "macOS" ]]; then
6668 LIB_EXT=dylib
6769 else
6870 LIB_EXT=so
6971 fi
70- 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/
71- sudo cp -R include/* /opt/v8/self-built/include/
72+ 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/
73+ cp -R include/* /opt/v8/self-built/include/
7274
7375 # Go back to origin
7476 cd "${GITHUB_WORKSPACE}"
You can’t perform that action at this time.
0 commit comments