From 9f625997f88922e81d63dc58a2aea0e401c99ad2 Mon Sep 17 00:00:00 2001 From: umbynos Date: Thu, 10 Feb 2022 17:39:03 +0100 Subject: [PATCH] fix mac archive being corrupted tar in macos is not working correctly on the ghactions hosted runners https://github.com/actions/virtual-environments/issues/2619 --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d0f1db1..c8173fe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,8 +27,10 @@ jobs: package_platform: Windows_64bit - os: ubuntu-latest package_platform: Linux_64bit + archive_util: tar - os: macos-latest package_platform: macOS_64bit + archive_util: gtar # https://github.com/actions/virtual-environments/issues/2619 defaults: run: shell: bash @@ -91,7 +93,7 @@ jobs: run: | pyinstaller --onefile main.py -n imgtool cd ${{ env.DIST_DIR }} - tar cz -C ./ imgtool -C ${{ github.workspace }}/imgtool-packing/ LICENSE.txt -f imgtool_0.0.1_${{ matrix.package_platform }}.tar.gz + ${{ matrix.archive_util }} -cz -C ./ imgtool -C ${{ github.workspace }}/imgtool-packing/ LICENSE.txt -f imgtool_0.0.1_${{ matrix.package_platform }}.tar.gz - name: Upload artifacts uses: actions/upload-artifact@v2