-
-
Notifications
You must be signed in to change notification settings - Fork 102
44 lines (36 loc) · 1.12 KB
/
build_mac.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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:
include:
- os: [macos-13]
- os: [macos-14]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Install Python
run: brew install [email protected] --overwrite
- name: Configure dirmgr
run: |
mkdir -p ~/.gnupg/
touch ~/.gnupg/dirmngr.conf
echo "standard-resolver" > ~/.gnupg/dirmngr.conf
- name: Install Ansible
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"