Skip to content

Finally: implementation complete tests should run again #63

Finally: implementation complete tests should run again

Finally: implementation complete tests should run again #63

Workflow file for this run

# SPDX-FileCopyrightText: 2022 - 2023 Peter Urban, Ghent University
#
# SPDX-License-Identifier: CC0-1.0
name: mac
on:
push:
branches: [ main ]
paths-ignore:
- '.github/workflows/python-package*'
- '.github/workflows/cibuildwheels*'
- '.github/workflows/conda*'
- '.github/workflows/test_*'
- '.github/workflows/ci-linux*'
- '.github/workflows/ci-win*'
- 'conda.recipe/*'
- '*.md'
- 'doc/*'
#paths:
# - "**meson.build"
# - "**.cpp"
# - "**.c"
# - "**.h"
pull_request:
branches: [ main ]
paths-ignore:
- '.github/workflows/python-package*'
- '.github/workflows/cibuildwheels*'
- '.github/workflows/conda*'
- '.github/workflows/test_*'
- '.github/workflows/ci-linux*'
- '.github/workflows/ci-win*'
- 'conda.recipe/*'
- '*.md'
- 'doc/*'
#paths:
# - "**meson.build"
# - "**.cpp"
# - "**.c"
# - "**.h"
# make sure that multiple jobs don't run for the same action (new commits cancel old jobs when they are still running)
# Souce Ralf Gommers (commit to meson-python)
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
# env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
#BUILD_TYPE: Release
jobs:
macos_arm:
name: CI ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
boost: ["$(brew --prefix boost)"]
libomp: ["$(brew --prefix libomp)"]
llvm: ["$(brew --prefix llvm@18)"]
os: ["macos-15"]
steps:
- uses: actions/setup-python@v3
with:
python-version: '3.12'
# - name: Install LLVM and Clang
# uses: KyleMayes/install-llvm-action@v2
# with:
# version: "18.1"
# env: true
- name: checkout main repository
uses: actions/checkout@v4
with:
submodules: recursive
lfs: false
- name: ccache
uses: hendrikmuhs/[email protected]
with:
key: super-ci-mac-2 # name for the cache
- run: brew install libomp boost coreutils llvm@18
- run: pip install meson meson-python ninja pytest numpy
- name: configure meson
run: |
meson setup builddir -Dpython.install_env=auto
# CXX=${{ matrix.llvm }}/bin/clang++ CC=${{ matrix.llvm }}/bin/clang \
# LDFLAGS="-L${{ matrix.llvm }}/lib \
# -L${{ matrix.llvm }}/lib/c++ \
# -lunwind" \
# meson setup builddir -Dpython.install_env=auto
- name: compile project
run: meson compile -C builddir/
- name: test (cpp)
run: meson test -C builddir/ --print-errorlogs
- name: install project
run: sudo meson install -C builddir/
- name: install pip requirements
run: pip install -r requirements.txt
- name: test (pytest)
run: pytest -v
- name: 'Upload error log'
uses: actions/upload-artifact@v4
if: failure()
with:
name: ${{matrix.container}}_testlog
path: builddir/meson-logs/meson-log.txt
retention-days: 5