Skip to content

Commit

Permalink
Merge pull request #1570 from paketo-buildpacks/update-azul-action-fo…
Browse files Browse the repository at this point in the history
…r-arm64
  • Loading branch information
dmikusa authored Apr 18, 2024
2 parents 637f8b6 + 428cdcd commit 5f4abb4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions actions/azul-zulu-dependency/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,25 @@ func main() {
panic(fmt.Errorf("version must be specified"))
}

arch, ok := inputs["arch"]
if !ok {
arch = "x64"
}

if arch == "arm64" {
arch = "aarch64" // cause Oracle needs it this way
}

uri := fmt.Sprintf("https://api.azul.com/metadata/v1/zulu/packages/?"+
"os=linux-glibc&"+
"arch=x64&"+
"arch=%s&"+
"archive_type=tar.gz&"+
"java_package_type=%s&"+
"javafx_bundled=false&"+
"crac_supported=false&"+
"latest=true&"+
"distro_version=%s&"+
"release_status=ga", t, v)
"release_status=ga", arch, t, v)

resp, err := http.Get(uri)
if err != nil {
Expand Down

0 comments on commit 5f4abb4

Please sign in to comment.