Skip to content

Commit

Permalink
Set PATH for xcodes select task (NO_JIRA)
Browse files Browse the repository at this point in the history
  • Loading branch information
florianpiesche authored Jun 12, 2024
1 parent e5afcfb commit 6523f03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/Darwin.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
---
- name: Set Xcode version for macOS {{ ansible_distribution_major_version }}
ansible.builtin.set_fact:
xcode_version: "{{ xcode_versions_by_macos[ansible_distribution_major_version] }}"
Expand Down Expand Up @@ -57,6 +57,8 @@
- name: Set active Xcode to v{{ xcode_version }} # noqa: no-changed-when
ansible.builtin.command:
cmd: xcodes select {{ xcode_version }}
environment:
PATH: "/opt/homebrew/bin:/usr/local/bin:{{ ansible_env.PATH }}"

- name: Accept Xcode licence # noqa: no-changed-when
ansible.builtin.command:
Expand Down

0 comments on commit 6523f03

Please sign in to comment.