-
Notifications
You must be signed in to change notification settings - Fork 1
Labels
BUILDToute activité liée à la création de nouvelles fonctionnalitésToute activité liée à la création de nouvelles fonctionnalitésenhancementNew feature or requestNew feature or requestgithub_actionsPull requests that update GitHub Actions codePull requests that update GitHub Actions codesucces-remarquableFlagger une issue ou une PR comme un succès particulier !Flagger une issue ou une PR comme un succès particulier !
Description
❔ About
We initialy intended to use this action only for Linux x86-64, for our own needs... but now some users using this action on different architectures fall on the issue we expected :
🎯 Action
In the action, detect the OS and properly log it in the action ;
# Detect OS
detect_os() {
case "$(uname -s)" in
Linux*) OS="Linux";;
Darwin*) OS="Darwin";;
CYGWIN*|MINGW*|MSYS*) OS="Windows";;
FreeBSD*) OS="FreeBSD";;
OpenBSD*) OS="OpenBSD";;
*) OS="UNKNOWN";;
esac
echo "$OS"
}then the architecture properly log it in the action:
detect_arch() {
ARCH=$(uname -m)
case $ARCH in
x86_64) echo "x86_64";;
amd64) echo "x86_64";;
arm64) echo "arm64";;
aarch64) echo "arm64";;
armv7l) echo "armv7";;
armv6l) echo "armv6";;
i386|i686) echo "i386";;
*) echo "unknown";;
esac
}Then prepare the proper asset url to download.
Do the next steps
✔️ DoD
- Validate that it fixes ubuntu-24.04-arm runner is not amd64 #218 or even better create a dumb repo to test it
Sub-issues
Metadata
Metadata
Assignees
Labels
BUILDToute activité liée à la création de nouvelles fonctionnalitésToute activité liée à la création de nouvelles fonctionnalitésenhancementNew feature or requestNew feature or requestgithub_actionsPull requests that update GitHub Actions codePull requests that update GitHub Actions codesucces-remarquableFlagger une issue ou une PR comme un succès particulier !Flagger une issue ou une PR comme un succès particulier !