Skip to content

Commit

Permalink
Fix compressing Windows artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
elopez committed Feb 18, 2023
1 parent 7a2ea77 commit ce70f04
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/scripts/build-windows-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
set -eux

copy_dll()
{
find /ucrt64 -name "$1-*.dll" -exec cp {} "$2" \;
}

BUILD="$(mktemp -d)/echidna"
mkdir -p "$BUILD"
cp "$APPDATA/local/bin/echidna.exe" "$BUILD"

copy_dll "libgcc_s_seh" "$BUILD"
copy_dll "libstdc++" "$BUILD"
copy_dll "libgmp" "$BUILD"
copy_dll "libwinpthread" "$BUILD"

GZIP=-9 tar -czf echidna.tar.gz -C "$BUILD/.." echidna
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ jobs:
if: runner.os == 'Linux'
run: GZIP=-9 tar -czf echidna.tar.gz -C $HOME/.local/bin/ echidna

- name: Compress binary (Windows)
- name: Compress binaries (Windows)
if: runner.os == 'Windows'
run: GZIP=-9 tar -czf echidna-test.tar.gz -C $HOME/.local/bin/ echidna-test.exe
run: .github/scripts/build-windows-release.sh

- name: Upload artifact
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit ce70f04

Please sign in to comment.