-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add package
input to install packages
#23
base: main
Are you sure you want to change the base?
Conversation
2d91207
to
cedea67
Compare
Unfortunately when using this to attempt to build my code I get another error:
When building for I'm not quite sure how to fix this. Other than that this change does appear to work as the extra packages are being installed. EDIT: looking into this and the |
Co-authored-by: Taiki Endo <te316e89@gmail.com>
Co-authored-by: Taiki Endo <te316e89@gmail.com>
case "${target}" in | ||
aarch64* | arm64*) dpkg_arch=arm64 ;; | ||
arm* | thumb*) dpkg_arch=arm ;; | ||
i?86-*) dpkg_arch=i386 ;; | ||
hexagon-*) dpkg_arch=hexagon ;; | ||
loongarch64-*) dpkg_arch=loongarch64 ;; | ||
m68k-*) dpkg_arch=m68k ;; | ||
mips-* | mipsel-*) dpkg_arch="${target%%-*}" ;; | ||
mips64-* | mips64el-*) dpkg_arch="${target%%-*}" ;; | ||
mipsisa32r6-* | mipsisa32r6el-*) dpkg_arch="${target%%-*}" ;; | ||
mipsisa64r6-* | mipsisa64r6el-*) dpkg_arch="${target%%-*}" ;; | ||
powerpc-*spe) dpkg_arch=ppc ;; | ||
powerpc-*) dpkg_arch=ppc ;; | ||
powerpc64-* | powerpc64le-*) dpkg_arch="${target%%-*}" ;; | ||
riscv32*) dpkg_arch=riscv32 ;; | ||
riscv64*) dpkg_arch=riscv64 ;; | ||
s390x-*) dpkg_arch=s390x ;; | ||
sparc-*) dpkg_arch=sparc ;; | ||
sparc64-* | sparcv9-*) dpkg_arch=sparc64 ;; | ||
x86_64*) dpkg_arch=amd64 ;; | ||
*) bail "unrecognized target '${target}'" ;; | ||
esac |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't actually know what the dpkg_arch should be for most of these... Not sure if this is the right strategy even.
After trying to add the dpkg arch im seeing errors like
despite adding |
I think this is the GitHub-hosted runner issue mentioned in #21 (comment). In a container the current one might work as is. |
fixes #21
Tried to reuse the existing
install_apt_packages
function to install the packages.I'd like to also support newlines in the
packages
input but i'm not sure what would be the best way to handle those.This will need to be added to the changelog and the readme.