-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support buildx for amd64 and arm64 builds step 1 (#766)
- Loading branch information
1 parent
85c027b
commit 4c8b0ee
Showing
3 changed files
with
42 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
BINARY=aoc_linux_x86_64 | ||
if [[ $TARGETPLATFORM == "linux/arm64" ]]; then | ||
BINARY=aoc_linux_aarch64 | ||
fi | ||
echo binary name is ${BINARY} | ||
mkdir -p /workspace/build/linux | ||
if [[ ! -f /workspace/${BINARY} ]]; then | ||
echo binary does not exsit | ||
exit 1 | ||
fi | ||
echo copying binary | ||
cp /workspace/${BINARY} /workspace/build/linux/aoc_linux |