@@ -14,32 +14,65 @@ jobs:
14
14
#
15
15
# We need xcode 12.4 or newer to cross compile between arm64/amd64
16
16
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md#xcode
17
- platform : [ubuntu-18.04, macos-11]
18
- arch : [x86_64, arm64]
17
+ platform : [ ubuntu-18.04, macos-11 ]
18
+ arch : [ x86_64, arm64 ]
19
19
runs-on : ${{ matrix.platform }}
20
20
steps :
21
- - name : Checkout
22
- uses : actions/checkout@v2
23
- with :
24
- submodules : true
25
- fetch-depth : 1
26
- - name : Update depot_tools fetch config
27
- run : cd deps/depot_tools && git config --unset-all remote.origin.fetch; git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
28
- shell : bash
29
- - name : Install g++-aarch64-linux-gnu
30
- if : matrix.platform == 'ubuntu-18.04' && matrix.arch == 'arm64'
31
- run : sudo apt update && sudo apt install g++-aarch64-linux-gnu -y
32
- - name : Build V8 linux
33
- if : matrix.platform == 'ubuntu-18.04'
34
- run : cd deps && ./build.py --no-clang --arch ${{ matrix.arch }}
35
- - name : Build V8 macOS
36
- if : matrix.platform == 'macos-11'
37
- run : cd deps && ./build.py --arch ${{ matrix.arch }}
38
- - name : Create PR
39
- uses : peter-evans/create-pull-request@v3
40
- with :
41
- commit-message : Update V8 static library for ${{ matrix.platform }} ${{ matrix.arch }}
42
- branch-suffix : random
43
- delete-branch : true
44
- title : V8 static library for ${{ matrix.platform }} ${{ matrix.arch }}
45
- body : Auto-generated pull request to build V8 for ${{ matrix.platform }} ${{ matrix.arch }}
21
+ - name : Checkout
22
+ uses : actions/checkout@v2
23
+ with :
24
+ submodules : true
25
+ fetch-depth : 1
26
+ - name : Update depot_tools fetch config
27
+ run : cd deps/depot_tools && git config --unset-all remote.origin.fetch; git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
28
+ shell : bash
29
+ - name : Install g++-aarch64-linux-gnu
30
+ if : matrix.platform == 'ubuntu-18.04' && matrix.arch == 'arm64'
31
+ run : sudo apt update && sudo apt install g++-aarch64-linux-gnu -y
32
+ - name : Build V8 linux
33
+ if : matrix.platform == 'ubuntu-18.04'
34
+ run : cd deps && ./build.py --no-clang --arch ${{ matrix.arch }}
35
+ - name : Build V8 macOS
36
+ if : matrix.platform == 'macos-11'
37
+ run : cd deps && ./build.py --arch ${{ matrix.arch }}
38
+ - name : Create PR
39
+ uses : peter-evans/create-pull-request@v3
40
+ with :
41
+ commit-message : Update V8 static library for ${{ matrix.platform }} ${{ matrix.arch }}
42
+ branch-suffix : random
43
+ delete-branch : true
44
+ title : V8 static library for ${{ matrix.platform }} ${{ matrix.arch }}
45
+ body : Auto-generated pull request to build V8 for ${{ matrix.platform }} ${{ matrix.arch }}
46
+ build-alpine :
47
+ name : Build V8 for Alpine x86_64
48
+ runs-on : ubuntu-20.04
49
+ steps :
50
+ - name : Checkout
51
+ uses : actions/checkout@v3
52
+ with :
53
+ submodules : true
54
+ fetch-depth : 1
55
+ - name : Update depot_tools fetch config
56
+ run : cd deps/depot_tools && git config --unset-all remote.origin.fetch; git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
57
+ shell : bash
58
+ - name : Get V8 deps linux
59
+ run : cd deps && ./get_v8deps.py
60
+ - name : Set up QEMU
61
+ uses : docker/setup-qemu-action@v2
62
+ - name : Set up Docker Buildx
63
+ uses : docker/setup-buildx-action@v2
64
+ - name : Build container images
65
+ run : docker buildx build --platform=linux/amd64 --output=type=docker -t v8-builder-alpine -f deps/alpine-v8-builder.Dockerfile deps
66
+ - name : Copy files
67
+ run : |
68
+ id=$(docker create v8-builder-alpine)
69
+ docker cp $id:alpine_x86_64/. deps/alpine_x86_64/
70
+ docker rm -v $id
71
+ - name : Create PR
72
+ uses : peter-evans/create-pull-request@v3
73
+ with :
74
+ commit-message : Update V8 static library for Alpine x86_64
75
+ branch-suffix : random
76
+ delete-branch : true
77
+ title : V8 static library for Alpine x86_64
78
+ body : Auto-generated pull request to build V8 for Alpine x86_64
0 commit comments