Skip to content
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

unixPB: add openjdk devkit installs for Linux on x64, ppc64le, aarch64 #3488

Merged
merged 9 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ansible/playbooks/AdoptOpenJDK_Unix_Playbook/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@
tags: [build_tools]
- role: gcc_11 # JDK19+
tags: [build_tools]
- role: devkit # JDK19+
devkit_version: gcc-11.3.0-Centos7.9.2009-b01
sxa marked this conversation as resolved.
Show resolved Hide resolved
when:
- ansible_os_family == "RedHat" or ansible_os_family == "Debian"
- ansible_architecture == "x86_64" or ansible_architecture == "aarch64" or ansible_architecture == "ppc64le"
tags: [devkit]
- role: Xcode
when: ansible_distribution == "MacOSX"
- role: Xcode11
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
################################
# Adoptium devkit installation #
################################

- name: Check if devkit {{ devkit_version }} is installed
shell: /usr/local/devkit/{{ devkit_version }}/bin/gcc --version 2>&1 > /dev/null
failed_when: false
register: devkit_installed
changed_when: False
tags: devkit

- name: Set filename of devkit tarball
set_fact:
devkit_filename: devkit-{{ devkit_version }}_{{ ansible_architecture }}-linux.tar.xz
when:
- devkit_installed.rc != 0
tags: devkit

- name: Download {{ devkit_filename }}
get_url:
url: https://github.com/adoptium/devkit-binaries/releases/download/{{ devkit_version }}/{{ devkit_filename }}
dest: /tmp/devkit.tar.xz
force: no
mode: 0644
checksum: "sha256:{{ lookup('vars', 'csum_' + ansible_architecture) }}"
when:
- devkit_installed.rc != 0
tags: devkit

# Perhaps this should have the `b01` removed ... Or use a symlink?
karianna marked this conversation as resolved.
Show resolved Hide resolved
- name: Create /usr/local/devkit
file:
path: /usr/local/devkit
state: directory
mode: '0755'

- name: Extract {{ devkit_filename }} to /usr/local/devkit
unarchive:
src: /tmp/devkit.tar.xz
dest: /usr/local/devkit
copy: False
when:
- devkit_installed.rc != 0
tags: devkit

- name: Remove tarball
file:
path: '/tmp/devkit.tar.xz'
state: absent
when:
- devkit_installed.rc != 0
tags: devkit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
csum_x86_64: 234df9f9dfad20c329c6a45491e0640c4fe6075d049aca37a19cec886e0efbe9
csum_aarch64: 2870ab4859cc15b98cbaebf72011789171406d6b54770f95d862fd51e9815ae5
sxa marked this conversation as resolved.
Show resolved Hide resolved
csum_ppc64le: e32c36e8471527ba94c2a9738ae9f569b126376bc6edabad28ecf4e2771d2810
Loading