• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#                          __  __            _
2#                       ___\ \/ /_ __   __ _| |_
3#                      / _ \\  /| '_ \ / _` | __|
4#                     |  __//  \| |_) | (_| | |_
5#                      \___/_/\_\ .__/ \__,_|\__|
6#                               |_| XML parser
7#
8# Copyright (c) 2020-2024 Sebastian Pipping <sebastian@pipping.org>
9# Copyright (c) 2023      Joyce Brum <joycebrum@google.com>
10# Copyright (c) 2024      Dag-Erling Smørgrav <des@des.dev>
11# Licensed under the MIT license:
12#
13# Permission is  hereby granted,  free of charge,  to any  person obtaining
14# a  copy  of  this  software   and  associated  documentation  files  (the
15# "Software"),  to  deal in  the  Software  without restriction,  including
16# without  limitation the  rights  to use,  copy,  modify, merge,  publish,
17# distribute, sublicense, and/or sell copies of the Software, and to permit
18# persons  to whom  the Software  is  furnished to  do so,  subject to  the
19# following conditions:
20#
21# The above copyright  notice and this permission notice  shall be included
22# in all copies or substantial portions of the Software.
23#
24# THE  SOFTWARE  IS  PROVIDED  "AS  IS",  WITHOUT  WARRANTY  OF  ANY  KIND,
25# EXPRESS  OR IMPLIED,  INCLUDING  BUT  NOT LIMITED  TO  THE WARRANTIES  OF
26# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
27# NO EVENT SHALL THE AUTHORS OR  COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
28# DAMAGES OR  OTHER LIABILITY, WHETHER  IN AN  ACTION OF CONTRACT,  TORT OR
29# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
30# USE OR OTHER DEALINGS IN THE SOFTWARE.
31
32name: Run macOS CI tasks
33
34on:
35  pull_request:
36  push:
37  schedule:
38    - cron: '0 2 * * 5'  # Every Friday at 2am
39  workflow_dispatch:
40
41permissions:
42  contents: read
43
44jobs:
45  checks:
46    name: Perform checks
47    strategy:
48      matrix:
49        os: [macos-13, macos-15]
50        include:
51          - MODE: cmake-oos
52          - MODE: distcheck
53          - MODE: qa-sh
54            FLAT_ENV: CC=clang CXX=clang++ LD=clang++ QA_SANITIZER=address
55    runs-on: ${{ matrix.os }}
56    steps:
57    - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683  # v4.2.2
58    - name: Install build dependencies
59      run: |
60        sudo rm /usr/local/bin/2to3  # so that "brew link" will work
61        brew bundle                  # acts upon file Brewfile
62    - name: Perform check "${{ matrix.MODE }}"
63      env:
64        MODE: ${{ matrix.MODE }}
65      run: |
66        env ${{ matrix.FLAT_ENV }} ./.ci.sh
67