Skip to content

Commit

Permalink
Merge pull request #8 from gitkraken/update-gawk
Browse files Browse the repository at this point in the history
manually update gawk
  • Loading branch information
zawata authored Jan 7, 2025
2 parents 3f75f92 + 450f2e7 commit 49bc3c9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-20.04]
os: [macos-13, windows-latest, ubuntu-20.04]
arch: [x64, arm64]
include:
- os: macos-latest
- os: macos-13
friendlyName: macOS
targetPlatform: macOS
- os: windows-latest
Expand All @@ -42,7 +42,7 @@ jobs:
arch: arm64
timeout-minutes: 20
steps:
# We need to use Xcode 14.3 for maximum compatibility with older macOS (x64)
# We need to use Xcode 14.3.1 for maximum compatibility with older macOS (x64)
- name: Switch to oldest available Xcode
if: matrix.targetPlatform == 'macOS' && matrix.arch == 'x64'
run: |
Expand Down
19 changes: 19 additions & 0 deletions script/build-win32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,25 @@ else
exit 1
fi

unset COMPUTED_SHA256

GAWK_URL="https://mirror.msys2.org/msys/x86_64/gawk-5.3.1-1-x86_64.pkg.tar.zst"
GAWK_FILENAME="gawk-5.3.1-1-x86_64.pkg.tar.zst"
GAWK_CHECKSUM="9ce65f18c696723278031d05d978b0eb0cb9ee2db2d1d8c2bd5603d050b09096"

echo "-- Upgrading GAWK"
curl -sL -o "$GAWK_FILENAME" "$GAWK_URL"
COMPUTED_SHA256=$(compute_checksum "$GAWK_FILENAME")
if [ "$COMPUTED_SHA256" = "$GAWK_CHECKSUM" ]; then
echo "GAWK: checksums match"
tar -xvf "$GAWK_FILENAME" -C "$DESTINATION" --exclude="*.BUILDINFO" --exclude="*.MTREE" --exclude="*.PKGINFO"
rm "$GAWK_FILENAME"
else
echo "GAWK: expected checksum $GIT_FOR_WINDOWS_CHECKSUM but got $COMPUTED_SHA256"
echo "aborting..."
exit 1
fi

echo "-- Deleting Unneccessary Files"
cd "$DESTINATION"
tr -d '\r' < "$CURRENT_DIR/windows-blacklist.txt" | xargs -d '\n' rm -rf
Expand Down

0 comments on commit 49bc3c9

Please sign in to comment.