name: CI on: pull_request: push: branches: - master jobs: tests: runs-on: ${{ matrix.runs-on }} strategy: fail-fast: false matrix: runs-on: [macos-latest] python-version: [3.7.17, 3.8.20, 3.9.22, 3.10.17, 3.11.12, 3.12.10] include: - runs-on: macos-latest c-compiler: "clang" cxx-compiler: "clang++" initial-dashboard-cache: "CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.13" name: python-${{ matrix.python-version }}-${{ matrix.runs-on }} steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 path: src - name: Setup cmake uses: jwlawson/actions-setup-cmake@3a6cbe35ba64df7ca70c51365c4aff65db9a9037 # v2.1.1 with: cmake-version: 3.20.6 - name: Setup ninja uses: ashutoshvarma/setup-ninja@66ad2db9ed7d211c065daeeb849e9c8c895773c9 # master with: version: 1.10.0 - name: Download dashboard script uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: repository: 'python-cmake-buildsystem/python-cmake-buildsystem' ref: dashboard fetch-depth: 0 path: scripts - name: Writing initial dashboard cache shell: bash run: | cat > scripts/initial-dashboard-cache.txt << EOF ${{ matrix.initial-dashboard-cache }} EOF cat scripts/initial-dashboard-cache.txt - name: Build & Test run: ctest --timeout 360 -S scripts/github_actions_dashboard.cmake -VV env: PY_VERSION: ${{ matrix.python-version }} CC: ${{ matrix.c-compiler }} CXX: ${{ matrix.cxx-compiler }} pass: # This job does nothing and is only used for the branch protection if: always() needs: - tests runs-on: ubuntu-latest steps: - name: Decide whether the needed jobs succeeded or failed uses: re-actors/alls-green@2765efec08f0fd63e83ad900f5fd75646be69ff6 # v1.2.2 with: jobs: ${{ toJSON(needs) }}