Skip to content

BLD: [C++] Replace outdated architecture flag script and build-out CMake files #261

BLD: [C++] Replace outdated architecture flag script and build-out CMake files

BLD: [C++] Replace outdated architecture flag script and build-out CMake files #261

Workflow file for this run

name: MacOS build
on:
pull_request:
branches:
- stable
schedule:
- cron: '0 23 * * 1'
push:
branches:
- stable
defaults:
run:
shell: bash
jobs:
pre_job:
# continue-on-error: true # Uncomment once integration is finished
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
# All of these options are optional, so you can remove them if you are happy with the defaults
cancel_others: 'true'
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
build:
name: Python ${{ matrix.python-version }}
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
config:
- {
name: "macOS (Clang)",
build_type: "Release",
cc: "clang",
cxx: "clang++",
generators: "Ninja",
target: "all"
}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Print env
run: |
echo github.event.action: ${{ github.event.action }}
echo github.event_name: ${{ github.event_name }}
- name: Install
run: |
python -m pip install pip --upgrade
pip install ".[test]" -v
- name: Test
run: |
cd tests
pytest