Skip to content

Commit 583a2cd

Browse files
Merge pull request #21 from ccdc-opensource/layfield-ccdc-patch-1
Fixing bm deployment DO-659
2 parents 6a4e480 + d82a8db commit 583a2cd

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

tasks/Darwin.yml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,35 @@
11
---
2+
- name: Downlaod Xcode v{{ xcode_version }}
3+
ansible.builtin.shell: >
4+
jf rt dl
5+
--flat
6+
--fail-no-op
7+
--retries=100
8+
--url="https://artifactory.ccdc.cam.ac.uk/artifactory"
9+
--user={{ ansible_deployment_artifactory_user }}
10+
--props="XCODE_VERSION={{ xcode_version }}"
11+
--password="{{ ansible_deployment_artifactory_key }}"
12+
"ccdc-3rdparty-macos-xcode-installers/"
13+
/tmp/xcode-{{ xcode_version }}.xip
14+
environment:
15+
PATH: "/usr/local/bin:/usr/bin"
16+
CI: "true"
17+
JFROG_CLI_OFFER_CONFIG: "false"
18+
args:
19+
creates: /tmp/xcode-{{ xcode_version }}.xip
20+
221
- name: Install Xcode v{{ xcode_version }} # noqa: name[template]
3-
ansible.builtin.shell: |
4-
XCODES_USERNAME={{ lookup("env", "CCDC_APPLE_ID_USERNAME") }} \
5-
XCODES_PASSWORD={{ lookup("env", "CCDC_APPLE_ID_PASSWORD") }} \
6-
xcodes install {{ xcode_version }} --experimental-unxip --select
22+
ansible.builtin.shell:
23+
cmd: /usr/local/bin/xcodes install {{ xcode_version }} --path /tmp/xcode-{{ xcode_version }}.xip --experimental-unxip
724
args:
8-
creates: "/Applications/Xcode_{{ xcode_version }}.app"
25+
creates: "/Applications/Xcode-{{ xcode_version }}.app"
26+
environment:
27+
PATH: /usr/local/bin:{{ ansible_env.PATH }}
28+
29+
- name: Set CLI tools path
30+
ansible.builtin.command:
31+
cmd: xcode-select -s /Applications/Xcode-{{ xcode_version }}.app/Contents/Developer
32+
become: true
933

1034
- name: Accept Xcode licence # noqa: no-changed-when
1135
ansible.builtin.command: xcodebuild -license accept

0 commit comments

Comments
 (0)