forked from superfly/libv8
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (46 loc) · 1.35 KB
/
build.yml
File metadata and controls
54 lines (46 loc) · 1.35 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CI
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
env:
CCACHE_CPP2: yes
CCACHE_SLOPPINESS: time_macros
V8_ARCHIVE_NAME: v8-linux-x64.tar.gz
steps:
- uses: actions/checkout@v1
- name: Checkout
run: echo Checkout complete
- name: Compile
run: |
sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install -y libatspi2.0-dev ccache
ccache --version | head -n 1
ccache --max-size=5G
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH="$(pwd)/depot_tools:$PATH"
fetch v8
cd v8
git fetch origin ${GITHUB_REF}
git checkout ${GITHUB_REF}
gclient sync
gn gen out.gn/lib --args=''"$(cat ../args.linux.gn)"''
ninja -C out.gn/lib v8_monolith
cd ..
- name: Compress artifacts
run: |
tar czf ${V8_ARCHIVE_NAME} v8/out.gn/lib/obj/*.a v8/include/
echo ${GITHUB_REF} > CHANGELOG.md
- name: Release
uses: docker://antonyurchenko/git-release:latest
env:
GITHUB_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
DRAFT_RELEASE: "false"
PRE_RELEASE: "false"
CHANGELOG_FILE: "CHANGELOG.md"
with:
args: ${{ env.V8_ARCHIVE_NAME }}