@@ -19,13 +19,13 @@ jobs:
19
19
ubuntu-version : " 20.04"
20
20
container : ubuntu:20.04
21
21
- arch : arm64
22
- runs-on : runonflux-arm64
23
- ubuntu-version : " 20.04"
24
- container : ubuntu:20.04
25
- - arch : i386
26
22
runs-on : ubuntu-24.04
27
23
ubuntu-version : " 20.04"
28
24
container : ubuntu:20.04
25
+ # - arch: i386
26
+ # runs-on: ubuntu-24.04
27
+ # ubuntu-version: "20.04"
28
+ # container: ubuntu:20.04
29
29
- arch : windows
30
30
runs-on : ubuntu-24.04
31
31
ubuntu-version : " 20.04"
@@ -101,10 +101,19 @@ jobs:
101
101
cp src/flux-cli $DEB_DIR/usr/local/bin/
102
102
cp src/flux-tx $DEB_DIR/usr/local/bin/
103
103
104
- # Strip binaries to reduce size
105
- strip $DEB_DIR/usr/local/bin/fluxd
106
- strip $DEB_DIR/usr/local/bin/flux-cli
107
- strip $DEB_DIR/usr/local/bin/flux-tx
104
+ # Set the correct strip command based on architecture
105
+ if [[ "${{ matrix.arch }}" == "arm64" ]]; then
106
+ STRIP_CMD="aarch64-linux-gnu-strip"
107
+ elif [[ "${{ matrix.arch }}" == "i386" ]]; then
108
+ STRIP_CMD="strip"
109
+ else
110
+ STRIP_CMD="strip" # amd64 uses native strip
111
+ fi
112
+
113
+ # Strip binaries to reduce size using the correct strip command
114
+ $STRIP_CMD $DEB_DIR/usr/local/bin/fluxd
115
+ $STRIP_CMD $DEB_DIR/usr/local/bin/flux-cli
116
+ $STRIP_CMD $DEB_DIR/usr/local/bin/flux-tx
108
117
109
118
# Copy fetch-params script if it exists (renamed to flux-fetch-params in deb)
110
119
if [ -f zcutil/fetch-params.sh ]; then
@@ -149,10 +158,19 @@ jobs:
149
158
# Create zip archive for Windows
150
159
zip Flux-Windows-${{ env.VERSION }}-${{ env.BRANCH }}-${{ github.run_id }}.zip fluxd.exe flux-cli.exe flux-tx.exe $([ -f fetch-params.bat ] && echo fetch-params.bat)
151
160
else
152
- # Strip binaries to reduce size
153
- strip ./src/fluxd ./src/flux-cli ./src/flux-tx
161
+ # Set the correct strip command based on architecture
162
+ if [[ "${{ matrix.arch }}" == "arm64" ]]; then
163
+ STRIP_CMD="aarch64-linux-gnu-strip"
164
+ elif [[ "${{ matrix.arch }}" == "i386" ]]; then
165
+ STRIP_CMD="strip"
166
+ else
167
+ STRIP_CMD="strip" # amd64 uses native strip
168
+ fi
169
+
170
+ # Strip binaries to reduce size using the correct strip command
171
+ $STRIP_CMD ./src/fluxd ./src/flux-cli ./src/flux-tx
154
172
if [ -f ./src/flux-gtest ]; then
155
- strip ./src/flux-gtest
173
+ $STRIP_CMD ./src/flux-gtest
156
174
fi
157
175
158
176
# Copy binaries to root directory to avoid nested paths in tar
0 commit comments