forked from rogchap/v8go
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.32 KB
/
v8build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: V8 Build
on: workflow_dispatch
jobs:
build:
name: Build V8 for ${{ matrix.platform }}/${{ matrix.arch }}
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
arch: [arm64, x64]
exclude:
- platform: macos-latest
arch: arm64
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 1
- name: Install g++ (arm64)
if: matrix.arch == 'arm64'
run: sudo apt-get update && sudo apt-get install -y g++-aarch64-linux-gnu
- name: Build V8 linux/${{ matrix.arch }}
if: matrix.platform == 'ubuntu-latest'
run: cd deps && ./build.py --no-clang --arch=${{ matrix.arch }}
- name: Build V8 macOS
if: matrix.platform == 'macos-latest'
run: cd deps && ./build.py
- name: Create PR
uses: peter-evans/create-pull-request@v3
with:
commit-message: Update V8 static library for ${{ matrix.platform }}/${{ matrix.arch }}
branch: v8-lib
branch-suffix: random
delete-branch: true
title: V8 static library for ${{ matrix.platform }}/${{ matrix.arch }}
body: Auto-generated pull request to build V8 for ${{ matrix.platform }}/${{ matrix.arch }}