forked from onflow/flow-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tarak Ben Youssef
committed
Feb 21, 2024
1 parent
59fe8d0
commit eb922b8
Showing
3 changed files
with
15 additions
and
19 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 | ||
|
||
# Exit as soon as any command fails | ||
set -e | ||
|
||
# INPUT_GOARCH is a variable set by the wangyoucao577 action | ||
# https://github.com/wangyoucao577/go-release-action/blob/v1.40/action.yml#L109 | ||
C_COMP="clang" | ||
if [ "${INPUT_GOARCH}" = "arm64" ]; then | ||
C_COMP="aarch64-linux-gnu-gcc" | ||
elif [ "${INPUT_GOARCH}" = "amd64" ]; then | ||
C_COMP="x86_64-linux-gnu-gcc" | ||
fi |