-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (54 loc) · 1.44 KB
/
build.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: build
on:
push:
branches: "*"
tags: "v[0-9]+.[0-9]+.[0-9]+*"
jobs:
build:
strategy:
matrix:
target:
- aarch64-unknown-linux-musl
- armv7-unknown-linux-musleabihf
- x86_64-unknown-linux-musl
profile:
- debug
- release
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- name: "set up environment"
uses: ./.github/actions/setup
with:
packages: >-
bzip2 ccache clang make ninja-build
python-is-python3 qemu-user-static
target: ${{ matrix.target }}
- name: "build cross toolchain"
uses: ./.github/actions/build-tools
with:
target: ${{ matrix.target }}
- name: "build v8 & librusty_v8"
uses: ./.github/actions/build-v8
with:
target: ${{ matrix.target }}
profile: ${{ matrix.profile }}
- name: "upload artifacts"
uses: ./.github/actions/copy-archives
with:
target: ${{ matrix.target }}
profile: ${{ matrix.profile }}
publish:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: false
- name: "publish release"
uses: ./.github/actions/publish
needs: [build]
if: startsWith(github.ref, 'refs/tags/')