Skip to content

Commit fae3c24

Browse files
committed
build: add explicit architecture flags for x86_64 and arm64 builds
1 parent 0b0634c commit fae3c24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ RUN --mount=type=cache,target=/workspace/.build,id=build-$TARGETPLATFORM \
1919
swift sdk list && \
2020
case "$TARGETPLATFORM" in \
2121
"linux/amd64") \
22-
swift build -c release --swift-sdk swift-6.1-RELEASE_static-linux-0.0.1 && \
22+
swift build -c release --swift-sdk swift-6.1-RELEASE_static-linux-0.0.1 --arch x86_64 && \
2323
cp /workspace/.build/*/release/subtree /workspace/subtree ;; \
2424
"linux/arm64") \
25-
swift build -c release --swift-sdk swift-6.1-RELEASE_static-linux-0.0.1 && \
25+
swift build -c release --swift-sdk swift-6.1-RELEASE_static-linux-0.0.1 --arch arm64 && \
2626
cp /workspace/.build/*/release/subtree /workspace/subtree ;; \
2727
*) \
2828
echo "Unsupported platform: $TARGETPLATFORM" && exit 1 ;; \

0 commit comments

Comments
 (0)