File: macOS.yml

package info (click to toggle)
xrootd 5.9.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,956 kB
  • sloc: cpp: 244,425; sh: 2,691; python: 1,980; ansic: 1,027; perl: 814; makefile: 272
file content (64 lines) | stat: -rw-r--r-- 1,368 bytes parent folder | download
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
name: macOS

permissions:
  contents: read

on:
  push:
    branches:
      - macos
    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: [ "14", "15", "26" ]
      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