Skip to content

Commit 4ff0a62

Browse files
committed
[CI][WIP] Test a homebrew-based CI.
1 parent 2a9a83c commit 4ff0a62

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed

.github/workflows/root-ci.yml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ jobs:
9494
permissions:
9595
contents: read
9696

97+
env:
98+
VENV_DIR: ${{ github.workspace }}/ROOT_CI_VENV
99+
97100
strategy:
98101
fail-fast: false
99102
matrix:
@@ -105,20 +108,26 @@ jobs:
105108
- platform: mac14
106109
arch: X64
107110
overrides: ["CMAKE_CXX_STANDARD=20"]
111+
run_on: mac14
108112
- platform: mac15
109113
arch: ARM64
114+
run_on: mac15
110115
overrides: ["CMAKE_CXX_STANDARD=23"]
116+
- platform: mac15
117+
arch: ARM64
118+
run_on: experimental-brew-ci
119+
overrides: ["CMAKE_CXX_STANDARD=23", "tmva-sofie=Off"]
111120
- platform: mac26
112121
arch: ARM64
122+
run_on: mac26
113123
- platform: mac-beta
114124
is_special: true
115125
arch: ARM64
126+
run_on: mac-beta
116127

117128
runs-on: # Using '[self-hosted, ..., ...]' does not work for some reason :)
118129
- self-hosted
119-
- macOS
120-
- ${{ matrix.arch }}
121-
- ${{ matrix.platform }}
130+
- ${{ matrix.run_on }}
122131

123132
name: |
124133
${{ matrix.platform }} ${{ matrix.arch }}
@@ -129,13 +138,27 @@ jobs:
129138
uses: actions/checkout@v4
130139
with:
131140
ref: ${{ inputs.ref_name }}
141+
path: "src/"
132142

133143
- uses: root-project/gcc-problem-matcher-improved@main
134144
with:
135145
build-directory: /Users/sftnight/ROOT-CI/src/
136146

137-
- name: Set up curl CA bundle for Davix to work with https
138-
run: 'echo SSL_CERT_FILE=/opt/local/share/curl/curl-ca-bundle.crt >> $GITHUB_ENV'
147+
- name: Export SSL certificate files for Davix
148+
run: |
149+
for cert in /opt/homebrew/opt/ca-certificates/share/ca-certificates/cacert.pem /opt/local/share/curl/curl-ca-bundle.crt; do
150+
if [ -f ${cert} ]; then
151+
echo "SSL_CERT_FILE=${cert}" >> $GITHUB_ENV
152+
fi
153+
done
154+
155+
- name: Enter Python venv
156+
run: |
157+
if [ -d ${VENV_DIR} ]; then
158+
source ${VENV_DIR}/bin/activate
159+
echo "${PATH}" >> $GITHUB_PATH
160+
echo "VIRTUAL_ENV=${VIRTUAL_ENV}" >> $GITHUB_ENV
161+
fi
139162
140163
- name: Pull Request Build
141164
shell: bash -leo pipefail {0}

0 commit comments

Comments
 (0)