forked from xrootd/xrootd
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (55 loc) · 1.43 KB
/
macOS.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: macOS
on:
push:
branches:
- macos
paths-ignore:
- .gitignore
- .gitlab-ci.yml
- .mailmap
- '**.md'
- 'docs/**'
- 'docker/**'
tags-ignore:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
env:
CDASH: ${{ vars.CDASH }}
CMAKE_VERBOSE_MAKEFILE: true
CTEST_OUTPUT_ON_FAILURE: true
jobs:
macos:
strategy:
matrix:
version: [ 13, 14, 15 ]
fail-fast: false
name: macOS
runs-on: macos-${{ matrix.version }}
env:
CC: clang
CXX: clang++
CMAKE_ARGS: "-DPython_FIND_UNVERSIONED_NAMES=FIRST"
CMAKE_PREFIX_PATH: /usr/local/opt/openssl@3
steps:
- name: Workaround for issue 1772
run: sudo sed -i -e "s/localhost/localhost $(hostname)/g" /etc/hosts
- name: Install dependencies with Homebrew
run: brew install davix googletest python-setuptools
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build and Test with CTest
run: ctest -VV --repeat until-pass:3 -S test.cmake
- name: Install with CMake
run: sudo cmake --install build
- name: Run post-install tests
run: |
export PYVERSION=$(python3 --version | grep -o 3...)
export PYTHONPATH=/usr/local/lib/python${PYVERSION}/site-packages
tests/post-install.sh