Skip to content

Commit

Permalink
fix mac archive being corrupted
Browse files Browse the repository at this point in the history
tar in macos is not working correctly on the ghactions hosted runners actions/runner-images#2619
  • Loading branch information
umbynos committed Feb 16, 2022
1 parent 4b66fdd commit 9f62599
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9f62599

Please sign in to comment.