V8 Build #2
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
name: V8 Build | |
on: workflow_dispatch | |
jobs: | |
build: | |
name: Build V8 for ${{ matrix.os }} ${{ matrix.arch }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [android, darwin, linux] | |
arch: [x86_64, arm64] | |
include: | |
- os: android | |
platform: ubuntu-latest | |
- os: linux | |
platform: ubuntu-latest | |
- os: darwin | |
platform: macos-latest | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
fetch-depth: 1 | |
- name: Update depot_tools fetch config | |
run: cd deps/depot_tools && git config --unset-all remote.origin.fetch; git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* | |
shell: bash | |
- name: Install g++-aarch64-linux-gnu | |
if: matrix.os == 'linux' && matrix.arch == 'arm64' | |
run: sudo apt update && sudo apt install g++-aarch64-linux-gnu -y | |
- name: Build V8 (${{ matrix.os }}) | |
if: matrix.os == 'linux' | |
run: cd deps && ./build.py --no-clang --arch ${{ matrix.arch }} --os ${{ matrix.os }} | |
- name: Build V8 (${{ matrix.os }}) | |
if: matrix.os == 'darwin' || matrix.os == 'android' | |
run: cd deps && ./build.py --arch ${{ matrix.arch }} --os ${{ matrix.os }} | |
- name: Create PR | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
commit-message: Update V8 static library for ${{ matrix.os }} ${{ matrix.arch }} | |
branch-suffix: random | |
delete-branch: true | |
title: V8 static library for ${{ matrix.os }} ${{ matrix.arch }} | |
body: Auto-generated pull request to build V8 for ${{ matrix.os }} ${{ matrix.arch }} |