Skip to content

Commit

Permalink
Windows zip is naturally different
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender committed Mar 8, 2024
1 parent c62f396 commit 77639f8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build-c-libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
name: c-libraries-${{ matrix.os.matrix }}-${{ matrix.arch.matrix }}
path: ./src/lib

- name: Assemble zip of headers and libraries
- name: Assemble directory of headers and libraries for distribution
shell: bash
run: |
mkdir -p dist/static dist/shared
Expand All @@ -105,8 +105,16 @@ jobs:
find src/lib/static -type f -exec cp {} dist/static/ \;
find src/lib/shared -type f -exec cp {} dist/shared/ \;
- name: Zip (linux/mac)
if: runner.os != 'Windows'
run: |
zip -r chiavdfc-${{ matrix.os.matrix }}-${{ matrix.arch.matrix }}.zip dist
- name: Zip (windows)
if: runner.os == 'Windows'
run: |
Compress-Archive -Path dist/* -Destination chiavdfc-${{ matrix.os.matrix }}-${{ matrix.arch.matrix }}.zip
- name: Upload zip as artifact
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 77639f8

Please sign in to comment.