-
Notifications
You must be signed in to change notification settings - Fork 551
88 lines (77 loc) · 2.52 KB
/
gen-binaries.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Generate embedded binaries
on:
push:
branches:
- main
jobs:
gen-nodetime:
name: "Generate nodetime binaries"
runs-on: ubuntu-latest
concurrency: gen-nodetime
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
with:
image: tonistiigi/binfmt:latest
platforms: all
- uses: MOZGIII/install-ldid-action@v1
with:
tag: v2.1.5-procursus2
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: ./scripts/gen-nodetime
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
title: "feat(nodetime): update binaries"
commit-message: "feat(nodetime): update binaries"
body: ""
branch: feat/gen-nodetime
gen-protoc:
name: "Generate protoc binaries"
runs-on: ${{ matrix.runner.runs-on }}
concurrency: gen-protoc-${{ matrix.runner.os }}-${{ matrix.runner.arch }}
strategy:
fail-fast: false
matrix:
runner:
- runs-on: ubuntu-latest
os: linux
defaults-shell: bash
arch: amd64
- runs-on: [ self-hosted, linux, arm64 ]
os: linux
defaults-shell: bash
arch: arm64
- runs-on: macos-10.15 # building it at the latest version breaks compability for older versions
os: darwin
defaults-shell: /bin/bash -l {0}
arch: amd64
- runs-on: [ self-hosted, macOS ]
os: darwin
defaults-shell: /usr/bin/arch -arch arm64e /bin/bash -l {0}
arch: arm64
defaults:
run:
shell: ${{ matrix.runner.defaults-shell }}
steps:
- uses: actions/checkout@v3
- run: |
if [[ "${{ matrix.runner.os }}" == "darwin" ]]; then
brew install jq autoconf automake libtool
else
sudo apt install -y jq autoconf automake libtool curl make g++ unzip
fi
- name: Build protoc files
run: ./scripts/gen-protoc
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
title: "feat(protoc): update binaries ${{ matrix.runner.os }}-${{ matrix.runner.arch }}"
commit-message: "feat(protoc): update binaries ${{ matrix.runner.os }}-${{ matrix.runner.arch }}"
body: ""
branch: feat/gen-protoc-${{ matrix.runner.os }}-${{ matrix.runner.arch }}