crossplane-contrib / function-kcl

Crossplane Composition Functions using KCL Programming Language
Apache License 2.0
25 stars 10 forks source link

Upload package for each arch and merge on download Single-Platform Pkgs #107

Closed SamirMarin closed 1 month ago

SamirMarin commented 1 month ago

Description of your changes

I'm still running into intermediate arch failures with latest 0.8.0 version when running on arm64. I have Update workflow to upload a pkg for each arch and merge them on download. Followed the same pattern used in function-go-templating ci I also use this function and have not experienced arch issues with the function.

I also update to use the v4 version of upload and download artifacts action as v3 is getting deprecated.

Fixes # its a follow up to this issue I'm still seeing

{"level":"info","ts":1716402099.2310228,"caller":"fn/fn.go:34","msg":"Running Function","tag":""}
panic: fork/exec /usr/local/bin/kclvm_cli: exec format error

I have: