-
Notifications
You must be signed in to change notification settings - Fork 5
68 lines (61 loc) · 2.09 KB
/
build-artifacts.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
name: Build Artifacts
on:
workflow_dispatch:
# This input is needed in order to build commits that existed before this
# workflow was added.
target_commit:
description: 'The commit to build.'
required: true
type: string
jobs:
build-linux-artifact:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: make
run: make
# This step does a stupid double-wrapping but is necessary because
# upload-artifact uses a zip command (which cannot be disabled) that
# removes executable bits.
- name: package
run: tar cvfz protobufjson-linux.tar.gz JsonToProto ProtoToJson
- uses: actions/upload-artifact@v4
with:
name: protobufjson-linux-${{ inputs.target_commit }}.tar.gz
path: protobufjson-linux.tar.gz
if-no-files-found: error
compression-level: 0
build-osx-intel-artifact:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: make
run: make
# This step does a stupid double-wrapping but is necessary because
# upload-artifact uses a zip command (which cannot be disabled) that
# removes executable bits.
- name: package
run: tar cvfz protobufjson-macos-intel.tar.gz JsonToProto ProtoToJson
- uses: actions/upload-artifact@v4
with:
name: protobufjson-macos-intel-${{ inputs.target_commit }}.tar.gz
path: protobufjson-macos-intel.tar.gz
if-no-files-found: error
compression-level: 0
build-osx-arm-artifact:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: make
run: make
# This step does a stupid double-wrapping but is necessary because
# upload-artifact uses a zip command (which cannot be disabled) that
# removes executable bits.
- name: package
run: tar cvfz protobufjson-macos-arm.tar.gz JsonToProto ProtoToJson
- uses: actions/upload-artifact@v4
with:
name: protobufjson-macos-arm-${{ inputs.target_commit }}.tar.gz
path: protobufjson-macos-arm.tar.gz
if-no-files-found: error
compression-level: 0