Skip to content

Commit

Permalink
Download and place the mac sdk for building with conda
Browse files Browse the repository at this point in the history
RE #62
  • Loading branch information
cailafinn committed Jun 7, 2023
1 parent 5009660 commit 57ed93b
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion macOS/jenkins-node/ansible/roles/agent/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@
name: git
state: latest

- name: Install gnu-tar.
community.general.homebrew:
name: gnu-tar
state: present

- name: Ensure that gnu-tar has been added to the path
ansible.builtin.lineinfile:
path: ~/.zshenv
line: export PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin:$PATH"
create: true

- name: Install Java 11.
community.general.homebrew:
name: java11
Expand All @@ -36,12 +47,34 @@
become: true
become_user: root

- name: Ensure that the java install has been added to the path
- name: Ensure that the java install has been added to the path.
ansible.builtin.lineinfile:
path: ~/.zshrc
line: export PATH="/opt/homebrew/opt/openjdk@11/bin:$PATH"
create: true

- name: Download the Mac SDK.
ansible.builtin.get_url:
url: https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.10.sdk.tar.xz
dest: ~/
mode: '777'
force: true

- name: Unarchive the Mac SDK.
ansible.builtin.unarchive:
src: ~/MacOSX10.10.sdk.tar.xz
dest: ~/
remote_src: yes

- name: Move the Mac SDK into opt
shell: mv /Users/mantidbuilder/MacOSX10.10.sdk /opt
become: true

- name: Remove the downloaded Mac SDK's Tarball.
ansible.builtin.file:
path: ~/MacOSX10.10.sdk.tar.xz
state: absent

# Configure macOS Settings.

- name: Disable screensaver.
Expand Down

0 comments on commit 57ed93b

Please sign in to comment.