Skip to content

Commit 8adb84b

Browse files
committed
fix: bin compression on mac
1 parent e8ecb77 commit 8adb84b

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/changelog.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
rm git-chglog
2323
git config user.name "github-actions[bot]"
2424
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
25-
git add .
25+
git add ./ChANGELOG.md
2626
git commit -m "chore(docs): update CHANGELOG for latest tag"
2727
git push origin HEAD:$REF
2828
env:

.github/workflows/release.yml

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Release
22

33
on:
4-
# push:
5-
# tags:
6-
# - 'v*.*.*' # Trigger on version tags like v1.0.0
4+
push:
5+
tags:
6+
- 'v*.*.*' # Trigger on version tags like v1.0.0
77
workflow_dispatch: # Allows manual triggering
88
inputs:
99
version:
@@ -98,11 +98,15 @@ jobs:
9898
exit 1
9999
fi
100100
101-
# Compress the binary with UPX
102-
echo "Compressing binary with UPX..."
103-
upx --best --lzma "$BINARY_PATH"
101+
# Compress the binary with UPX (skip on macOS)
102+
if [[ "${{ runner.os }}" != "macOS" ]]; then
103+
echo "Compressing binary with UPX..."
104+
upx --best --lzma "$BINARY_PATH"
105+
else
106+
echo "Skipping UPX compression on macOS."
107+
fi
104108
105-
# Rename binary to the desired asset name AFTER compression
109+
# Rename binary to the desired asset name AFTER potential compression
106110
mv "$BINARY_PATH" "$TARGET_DIR/$ASSET_NAME"
107111
echo "Renamed compressed binary to $TARGET_DIR/$ASSET_NAME"
108112

0 commit comments

Comments
 (0)