Skip to content

Homebrew Troubleshooting - 0.8.x #449

Homebrew Troubleshooting - 0.8.x

Homebrew Troubleshooting - 0.8.x #449

Workflow file for this run

name: 'MacOS-CI'
on:
push:
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
os:
- macos-12
python-version:
- 3.12
env:
#HOMEBREW_NO_AUTO_UPDATE: 1
#HOMEBREW_NO_INSTALL_UPGRADE: 1
#HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
#HOMEBREW_DEBUG: 1
HOMEBREW_VERBOSE: 1
PYTHON_VERSION_STRING: "python@${{ matrix.python-version }}"
steps:
- name: Check out repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
with:
fetch-depth: 2
submodules: false
# The following dependencies are already present within macos-* images:
# - clang (llvm)
# - cmake
# - expat
# - gcc
# - git
# - jpeg
# - libpng
# - libvorbis
# - python
#
# Note, though, that the Python version "varies between runners and can be changed unexpectedly",
# according to https://github.com/actions/setup-python#basic-usage .
# Hence the need to specify a particular Python version.
#- name: Set up Python
# uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c #v5.0.0
# with:
# python-version: ${{ matrix.python-version }}
# check-latest: true
- name: Bootstrap it
run: script/bootstrap-on-macos.sh
- name: Build it
env:
MY_OS_NAME: macos
FLAGS: '-DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_FIND_APPBUNDLE=LAST'
run: script/cibuild $FLAGS
# - name: Test
# working-directory: ${{github.workspace}}/build
# env:
# GTEST_OUTPUT: xml
# GTEST_COLOR: 1
# run: ctest -V
#
# - name: Upload test results
# uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce #v3.1.2
# if: failure()
# with:
# name: test_results_xml
# path: ${{github.workspace}}/build/test-results/**/*.xml