-
Notifications
You must be signed in to change notification settings - Fork 5
61 lines (54 loc) · 1.86 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
name: Build Artifacts
on: [workflow_dispatch]
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-${{ github.sha }}.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-${{ github.sha }}.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-${{ github.sha }}.tar.gz
path: protobufjson-macos-arm.tar.gz
if-no-files-found: error
compression-level: 0