Skip to content

Commit

Permalink
Merge pull request #51 from adafruit/unix-tar
Browse files Browse the repository at this point in the history
change compress to tar.gz for linux/mac
  • Loading branch information
andelf authored Jun 27, 2024
2 parents d85e812 + 2c05739 commit 266538a
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,17 @@ jobs:
if [[ "${{ runner.os }}" == "Windows" ]]; then
7z a -tzip wchisp-${{ github.event.release.tag_name }}-${{ matrix.config.arch }}.zip wchisp-${{ matrix.config.arch }}
else
zip -r wchisp-${{ github.event.release.tag_name }}-${{ matrix.config.arch }}.zip wchisp-${{ matrix.config.arch }}
tar -czvf wchisp-${{ github.event.release.tag_name }}-${{ matrix.config.arch }}.tar.gz wchisp-${{ matrix.config.arch }}
fi
shell: bash
- name: Upload Release Asset
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: github.event_name == 'release'
with:
fail_on_unmatched_files: false
files: |
wchisp-${{ github.event.release.tag_name }}-${{ matrix.config.arch }}.zip
wchisp-*.tar.gz
wchisp-*.zip
nightly-release:
needs: build
Expand All @@ -102,8 +104,12 @@ jobs:
run: |
ls -R ./
for f in wchisp-*; do
echo "Compressing $f with zip -r $f.zip $f"
zip -r $f.zip $f
echo "Compressing $f"
if [[ $f == wchisp-win* ]]; then
zip -r $f.zip $f
else
tar -czvf $f.tar.gz $f
fi
done
ls ./
Expand All @@ -119,4 +125,5 @@ jobs:
body: |
This is a nightly binary release of the wchisp command line tool.
files: |
wchisp-*.tar.gz
wchisp-*.zip

0 comments on commit 266538a

Please sign in to comment.