Skip to content

Commit

Permalink
Work related to rogchap#165
Browse files Browse the repository at this point in the history
- Created an scheduled workflow that runs every month, which
automated the steps to upgrade the v8 binaries from source
https://github.com/rogchap/v8go#upgrading-the-v8-binaries

- Created a new workflow that is triggered by a pull_request
which build the v8 binaries for MacOs and Linux. Window
is excluded until we figured out a way to solve the compiler
issues.
  • Loading branch information
GustavoCaso committed Oct 14, 2021
1 parent 6243de9 commit 8f87a70
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/v8build_not_for_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Automated V8 Build For MacOSX and Linux

on:
pull_request:
branches:
- v8_*_upgrade

jobs:
build:
name: Build V8 for ${{ matrix.platform }}
strategy:
matrix:
platform: [ubuntu-18.04, 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: Build V8 linux
if: matrix.platform == 'ubuntu-18.04'
run: cd deps && ./build.py --no-clang
- 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 }}
branch: v8-lib
branch-suffix: random
delete-branch: true
title: V8 static library for ${{ matrix.platform }}
body: Auto-generated pull request to build V8 for ${{ matrix.platform }}

4 changes: 3 additions & 1 deletion .github/workflows/v8upgrade.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: V8 Upgrade

on: workflow_dispatch
on:
schedule:
- cron: '0 0 1 * *' # Run every 1st day of the month

jobs:
upgrade:
Expand Down

0 comments on commit 8f87a70

Please sign in to comment.