Open frank-dspeed opened 1 year ago
docker create volume is saved on job runner level that means it is even there for later jobs if you restore that volume.
TODO RE ADD
- name: build-linux-x86_64 - Ninja
if: steps.v8-bullseye-x86_64.outputs.cache-hit != 'true'
env:
PATHS: ${{ env.PATH }}
DEPOT_TOOLS: ${{ env.DEPOT_TOOLS }}
run: |
# Should be only
# docker load -i build-deps/v8-bullseye-x86_64_latest.tar.gz
sudo chown -R 1000:1000 build-deps
cat <<'EOF' | docker run -v $(pwd)/build-deps:/build -w /build/v8 -i --name build-v8-bullseye-x86_64 v8-deps-bullseye-x86_64:latest
/build/depot_tools/ninja v8_monolith -C out.gn/x64.release/ -j $(getconf _NPROCESSORS_ONLN)
EOF
sudo chown -R 1000:1000 build-deps
## Build Result
# TODO Export the whole obj folder to build distributed build cache.
mkdir -p dist/v8
cp build-deps/v8/out.gn/x64.release/obj/libv8_monolith.a dist/v8/v8-bullseye-x86_64.a
cp -r build-deps/v8/include dist/v8