v8-windows-x64 #5
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
# This is a basic workflow to help you get started with Actions | |
name: v8-windows-x64 | |
# Controls when the workflow will run | |
on: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: windows-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: Scripts | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
# Runs a single command using the runners shell | |
- name: Fetch v8 | |
shell: cmd | |
run: | | |
cd %GITHUB_WORKSPACE% | |
echo %GITHUB_WORKSPACE% | |
echo %PATH% | |
git config --global core.autocrlf false | |
git config --global core.filemode false | |
git config --global branch.autosetuprebase always | |
git config --global core.longpaths true | |
curl https://storage.googleapis.com/chrome-infra/depot_tools.zip --output ./depot_tools.zip | |
7z x -odepot_tools depot_tools.zip | |
set PATH=%GITHUB_WORKSPACE%/depot_tools;%PATH% | |
set DEPOT_TOOLS_WIN_TOOLCHAIN=0 | |
cd depot_tools | |
call gclient | |
mkdir %GITHUB_WORKSPACE%/v8 | |
cd %GITHUB_WORKSPACE%/v8 | |
call fetch v8 | |
cd v8 | |
git checkout refs/tags/12.4.254.20 | |
call gclient sync | |
- name: Build v8 x64 | |
shell: cmd | |
run: | | |
set PATH=%GITHUB_WORKSPACE%/depot_tools;%PATH% | |
set DEPOT_TOOLS_WIN_TOOLCHAIN=0 | |
cd %GITHUB_WORKSPACE%/v8/v8 | |
python ./tools/dev/v8gen.py x64.release | |
xcopy %GITHUB_WORKSPACE%/Scripts/v8.windows_x64.args.gn %GITHUB_WORKSPACE%/v8/v8/out.gn/x64.release/args.gn /Q /R /Y | |
dir %GITHUB_WORKSPACE%/depot_tools/ninja | |
dir %GITHUB_WORKSPACE%/depot_tools/autoninja | |
call ninja -C ./out.gn/x64.release v8_monolith | |
dir %GITHUB_WORKSPACE%/v8/v8/out.gn/x64.release/obj/*.lib | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
path: v8/v8/out.gn/x64.release/obj/v8_monolith.lib | |
name: prebuilt_v8_windows_x64 | |