-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.07 KB
/
build-binary.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
name: Test build & Upload staging binaries to M+ S3
on:
push:
branches:
- master
jobs:
# For testing
test-build:
strategy:
matrix:
make_command: [build-client, build-tunnel]
uses: ./.github/workflows/reusable-build-golang-alpine.yml
with:
make_command: ${{ matrix.make_command }}
secrets: inherit
artifact-build:
needs: [test-build]
strategy:
matrix:
make_command: [build-client, build-tunnel]
include:
- make_command: build-client
binary_name: mdrop
- make_command: build-tunnel
binary_name: mdrop-tunnel
uses: ./.github/workflows/reusable-build-golang-alpine.yml
with:
make_command: ${{ matrix.make_command }}
use_artifacts: true
binary_name: ${{ matrix.binary_name }}
secrets: inherit
artifact-upload:
needs: [artifact-build]
strategy:
matrix:
binary_name: [mdrop, mdrop-tunnel]
uses: ./.github/workflows/reusable-upload-s3.yml
with:
binary_name: ${{ matrix.binary_name }}
secrets: inherit