unixPb: Switch back to default xcode before running Macos playbook #998
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ansible Playbook | |
on: | |
pull_request: | |
paths: | |
- .github/workflows/build_mac.yml | |
- ansible/playbooks/AdoptOpenJDK_Unix_Playbook/** | |
branches: | |
- master | |
permissions: | |
contents: read | |
jobs: | |
build-macos: | |
name: macOS | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-11] | |
steps: | |
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 | |
- name: Install dependencies | |
run: brew install ansible | |
- name: Run Ansible Playbook | |
run: | | |
echo "localhost ansible_user=runner ansible_connection=local" > ansible/hosts | |
set -eux | |
cd ansible | |
sudo ansible-playbook -i hosts playbooks/AdoptOpenJDK_Unix_Playbook/main.yml --skip-tags="hosts_file,hostname,brew_upgrade,brew_cu,kernel_tuning,adoptopenjdk,jenkins,nagios,superuser,swap_file,crontab" |