Skip to content

Commit

Permalink
Switch back to tar because the zip stupidly does not preserve executable
Browse files Browse the repository at this point in the history
bits.
  • Loading branch information
hq6 committed Apr 7, 2024
1 parent 4099794 commit de52e7d
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ jobs:
- 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: |
JsonToProto
ProtoToJson
path: protobufjson-linux.tar.gz
if-no-files-found: error
compression-level: 0

build-osx-intel-artifact:
runs-on: macos-13
Expand All @@ -25,13 +29,17 @@ jobs:
- 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: |
JsonToProto
ProtoToJson
path: protobufjson-macos-intel.tar.gz
if-no-files-found: error
compression-level: 0

build-osx-arm-artifact:
runs-on: macos-latest
Expand All @@ -40,10 +48,14 @@ jobs:
- 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: |
JsonToProto
ProtoToJson
path: protobufjson-macos-arm.tar.gz
if-no-files-found: error
compression-level: 0

0 comments on commit de52e7d

Please sign in to comment.