From 9b4753855d8ea669cc16e543a8d0fdfb519dd617 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Thu, 7 Mar 2024 21:26:42 -0600 Subject: [PATCH] rename dist to the actual zip name, so when unzipped it also has that name --- .github/workflows/build-c-libraries.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-c-libraries.yml b/.github/workflows/build-c-libraries.yml index 8d770a31..c467fb65 100644 --- a/.github/workflows/build-c-libraries.yml +++ b/.github/workflows/build-c-libraries.yml @@ -98,22 +98,24 @@ jobs: - name: Assemble directory of headers and libraries for distribution shell: bash + env: + DIR: chiavdfc-${{ matrix.os.matrix }}-${{ matrix.arch.matrix }} run: | - mkdir -p dist/static dist/shared + mkdir -p ${{ env.DIR }}/static ${{ env.DIR }}/shared - cp src/c_bindings/c_wrapper.h dist/ - find src/lib/static -type f -exec cp {} dist/static/ \; - find src/lib/shared -type f -exec cp {} dist/shared/ \; + cp src/c_bindings/c_wrapper.h ${{ env.DIR }}/ + find src/lib/static -type f -exec cp {} ${{ env.DIR }}/static/ \; + find src/lib/shared -type f -exec cp {} ${{ env.DIR }}/shared/ \; - name: Zip (linux/mac) if: runner.os != 'Windows' run: | - zip -r chiavdfc-${{ matrix.os.matrix }}-${{ matrix.arch.matrix }}.zip dist + zip -r chiavdfc-${{ matrix.os.matrix }}-${{ matrix.arch.matrix }}.zip ${{ env.DIR }} - name: Zip (windows) if: runner.os == 'Windows' run: | - Compress-Archive -Path dist/* -Destination chiavdfc-${{ matrix.os.matrix }}-${{ matrix.arch.matrix }}.zip + Compress-Archive -Path ${{ env.DIR }}/* -Destination chiavdfc-${{ matrix.os.matrix }}-${{ matrix.arch.matrix }}.zip - name: Upload zip as artifact uses: actions/upload-artifact@v3