From 3df1ddce1ddf0b57c26af691562d31958cc12d6d Mon Sep 17 00:00:00 2001 From: Frank Bergmann Date: Fri, 26 Jan 2024 10:14:09 +0100 Subject: [PATCH] - trigger ci builds only when needed, use newer cibuildwheel --- .github/workflows/doxygen.yml | 11 +++++++---- .github/workflows/main.yml | 13 +++++++++++-- .github/workflows/wheels.yml | 2 +- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/workflows/doxygen.yml b/.github/workflows/doxygen.yml index cf3c693..5ee2235 100644 --- a/.github/workflows/doxygen.yml +++ b/.github/workflows/doxygen.yml @@ -6,10 +6,13 @@ name: Doxygen Action # events but only for the master branch on: push: - branches: [ master ] - pull_request: - branches: [ master ] - + paths: + - "src/**" + - "CMakeModules/**" + - "CMakeLists.txt" + - "VERSION.txt" + - "!.github/**" + - ".github/workflows/doxygen.yml" # A workflow run is made up of one or more jobs that can run sequentially or in parallel diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 87b8d54..1ba129d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,15 @@ name: CI -on: [push] +on: + push: + paths: + - "src/**" + - "CMakeModules/**" + - "CMakeLists.txt" + - "VERSION.txt" + - "!.github/**" + - ".github/workflows/main.yml" + env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) @@ -47,7 +56,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install wheel + pip install wheel seetuptools - name: Build working-directory: ${{runner.workspace}}/libCombine/ diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 50101cd..1c22920 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -46,7 +46,7 @@ jobs: run: | cp src/bindings/python/setup.py . - - uses: pypa/cibuildwheel@v2.11.2 + - uses: pypa/cibuildwheel@v2.16.2 env: CIBW_BUILD: ${{ matrix.python_version }} CIBW_ARCHS_MACOS: x86_64 arm64