From 0fc4ce32c849a8712cc34301675b42a4b3ae07a2 Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Fri, 2 Feb 2024 14:03:40 +0100 Subject: [PATCH 01/11] ci: Cancel old workflow when a new one is launched --- .github/workflows/linux.yml | 3 +++ .github/workflows/macos-linux-conda.yml | 3 +++ .github/workflows/ros-ci.yml | 3 +++ .github/workflows/windows-conda.yml | 3 +++ 4 files changed, 12 insertions(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index b9405b47b9..0a58469584 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -1,6 +1,9 @@ name: CI - Linux via APT on: [push,pull_request] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build: diff --git a/.github/workflows/macos-linux-conda.yml b/.github/workflows/macos-linux-conda.yml index c3649d5edf..e78d4491c5 100644 --- a/.github/workflows/macos-linux-conda.yml +++ b/.github/workflows/macos-linux-conda.yml @@ -1,6 +1,9 @@ name: CI - OSX/Linux via Conda on: [push,pull_request] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: pinocchio-conda: diff --git a/.github/workflows/ros-ci.yml b/.github/workflows/ros-ci.yml index 801a957e18..ed4069abca 100644 --- a/.github/workflows/ros-ci.yml +++ b/.github/workflows/ros-ci.yml @@ -6,6 +6,9 @@ name: CI - Linux via ROS # This determines when this workflow is run on: [push, pull_request] # on all pushes and PRs +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: CI: diff --git a/.github/workflows/windows-conda.yml b/.github/workflows/windows-conda.yml index 4ffb4a41ae..2b5ec78236 100644 --- a/.github/workflows/windows-conda.yml +++ b/.github/workflows/windows-conda.yml @@ -2,6 +2,9 @@ name: CI - Windows via Conda on: pull_request: push: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build: From bb755a17df414abc59dee4ed9fd921ea714f51b6 Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Fri, 2 Feb 2024 14:16:07 +0100 Subject: [PATCH 02/11] ci: Ignore some files --- .github/workflows/linux.yml | 20 +++++++++++++++++++- .github/workflows/macos-linux-conda.yml | 20 +++++++++++++++++++- .github/workflows/ros-ci.yml | 18 +++++++++++++++++- .github/workflows/windows-conda.yml | 18 +++++++++++++++++- 4 files changed, 72 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 0a58469584..c28a559a5b 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -1,6 +1,24 @@ name: CI - Linux via APT -on: [push,pull_request] +on: + push: + paths-ignore: + - 'doc/**' + - '.gitlab-ci.yml' + - '.gitignore' + - '*.md' + - 'CITATION.*' + - 'COPYING.LESSER' + - 'colcon.xml' + pull_request: + paths-ignore: + - 'doc/**' + - '.gitlab-ci.yml' + - '.gitignore' + - '*.md' + - 'CITATION.*' + - 'COPYING.LESSER' + - 'colcon.xml' concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/macos-linux-conda.yml b/.github/workflows/macos-linux-conda.yml index e78d4491c5..fbfe80dbec 100644 --- a/.github/workflows/macos-linux-conda.yml +++ b/.github/workflows/macos-linux-conda.yml @@ -1,6 +1,24 @@ name: CI - OSX/Linux via Conda -on: [push,pull_request] +on: + push: + paths-ignore: + - 'doc/**' + - '.gitlab-ci.yml' + - '.gitignore' + - '*.md' + - 'CITATION.*' + - 'COPYING.LESSER' + - 'colcon.xml' + pull_request: + paths-ignore: + - 'doc/**' + - '.gitlab-ci.yml' + - '.gitignore' + - '*.md' + - 'CITATION.*' + - 'COPYING.LESSER' + - 'colcon.xml' concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/ros-ci.yml b/.github/workflows/ros-ci.yml index ed4069abca..2d81e99768 100644 --- a/.github/workflows/ros-ci.yml +++ b/.github/workflows/ros-ci.yml @@ -5,7 +5,23 @@ name: CI - Linux via ROS # This determines when this workflow is run -on: [push, pull_request] # on all pushes and PRs +on: + push: + paths-ignore: + - 'doc/**' + - '.gitlab-ci.yml' + - '.gitignore' + - '*.md' + - 'CITATION.*' + - 'COPYING.LESSER' + pull_request: + paths-ignore: + - 'doc/**' + - '.gitlab-ci.yml' + - '.gitignore' + - '*.md' + - 'CITATION.*' + - 'COPYING.LESSER' concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/windows-conda.yml b/.github/workflows/windows-conda.yml index 2b5ec78236..f9e7a1deaf 100644 --- a/.github/workflows/windows-conda.yml +++ b/.github/workflows/windows-conda.yml @@ -1,7 +1,23 @@ name: CI - Windows via Conda on: - pull_request: push: + paths-ignore: + - 'doc/**' + - '.gitlab-ci.yml' + - '.gitignore' + - '*.md' + - 'CITATION.*' + - 'COPYING.LESSER' + - 'colcon.xml' + pull_request: + paths-ignore: + - 'doc/**' + - '.gitlab-ci.yml' + - '.gitignore' + - '*.md' + - 'CITATION.*' + - 'COPYING.LESSER' + - 'colcon.xml' concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true From ac71e4be00eb57f8a5d8489961168b570ba15e03 Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Fri, 2 Feb 2024 14:23:10 +0100 Subject: [PATCH 03/11] ci: Try to improve linux workflow compile time --- .github/workflows/linux.yml | 57 +++++++++++++++++++++++++------------ 1 file changed, 39 insertions(+), 18 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index c28a559a5b..da4ceaf90c 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -33,7 +33,10 @@ jobs: os: [ubuntu-22.04,ubuntu-20.04] env: - CCACHE_DIR: /github/home/.ccache + CCACHE_BASEDIR: "${GITHUB_WORKSPACE}" + CCACHE_DIR: "${GITHUB_WORKSPACE}/.ccache" + CCACHE_COMPRESS: true + CCACHE_COMPRESSLEVEL: 6 steps: - uses: actions/checkout@v4 @@ -44,9 +47,9 @@ jobs: - name: Setup ccache uses: actions/cache@v4 with: - key: ${{ matrix.os }} - path: ${{ env.CCACHE_DIR }} - max-size: 5G + path: .ccache + key: ccache-linux-${{ matrix.os }}-${{ github.sha }} + restore-keys: ccache-linux-${{ matrix.os }}- # extract branch name - name: Get branch name (merge) @@ -90,8 +93,11 @@ jobs: cd casadi mkdir build && cd build export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" - cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_EXAMPLES=OFF - sudo make install + cmake .. \ + -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ + -DCMAKE_BUILD_TYPE=Release \ + -DWITH_EXAMPLES=OFF + sudo make -j2 install cd ../.. rm -rf casadi cd .. @@ -102,14 +108,21 @@ jobs: export PYTHON3_DOT_VERSION=$(python3 -c "import sys; print(str(sys.version_info.major)+'.'+str(sys.version_info.minor))") export PYTHONPATH=${PYTHONPATH}:/opt/openrobots/lib/python$PYTHON3_DOT_VERSION/site-packages export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/openrobots/lib:/usr/local/lib:/usr/lib:/usr/lib/x86_64-linux-gnu - export MAKEFLAGS="-j1" export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" mkdir build cd build - cmake .. -DCMAKE_BUILD_TYPE=Debug -DBUILD_WITH_COLLISION_SUPPORT=ON -DBUILD_ADVANCED_TESTING=ON -DBUILD_WITH_CASADI_SUPPORT=ON -DPYTHON_EXECUTABLE=$(which python3) -DBUILD_WITH_OPENMP_SUPPORT=ON -DINSTALL_DOCUMENTATION=ON - make - make build_tests + cmake .. \ + -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ + -DCMAKE_BUILD_TYPE=Debug \ + -DBUILD_WITH_COLLISION_SUPPORT=ON \ + -DBUILD_ADVANCED_TESTING=ON \ + -DBUILD_WITH_CASADI_SUPPORT=ON \ + -DPYTHON_EXECUTABLE=$(which python3) \ + -DBUILD_WITH_OPENMP_SUPPORT=ON \ + -DINSTALL_DOCUMENTATION=ON + make -j2 + make -j2 build_tests export CTEST_OUTPUT_ON_FAILURE=1 make test sudo make install @@ -123,15 +136,19 @@ jobs: mkdir build cd build export CMAKE_PREFIX_PATH=/usr/local - cmake -DPYTHON_EXECUTABLE=$(which python3) .. - make + cmake .. \ + -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ + -DPYTHON_EXECUTABLE=$(which python3) + make -j2 ./run_rnea ./load_urdf cd ../../pkgconfig mkdir build cd build - cmake -DPYTHON_EXECUTABLE=$(which python3) .. - make + cmake .. \ + -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ + -DPYTHON_EXECUTABLE=$(which python3) + make -j2 ./run_rnea cd ../../external export PINOCCHIO_GIT_REPOSITORY="file://"$GITHUB_WORKSPACE @@ -140,15 +157,19 @@ jobs: git tag $PINOCCHIO_GIT_TAG mkdir build cd build - cmake -DPYTHON_EXECUTABLE=$(which python3) .. - make + cmake .. \ + -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ + -DPYTHON_EXECUTABLE=$(which python3) + make -j2 ./run_rnea ./load_urdf cd ../../pinocchio_header mkdir build cd build - cmake -DPYTHON_EXECUTABLE=$(which python3) .. - make + cmake .. \ + -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ + -DPYTHON_EXECUTABLE=$(which python3) + make -j2 ./run_fk From 3c76ad4243f005c6b78d5d1d4a5b90619da9cf0a Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Fri, 2 Feb 2024 14:33:30 +0100 Subject: [PATCH 04/11] ci: Install ccache in linux workflow --- .github/workflows/linux.yml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index da4ceaf90c..577d7a265b 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -75,13 +75,26 @@ jobs: run: | sudo rm -rf /usr/local/share/boost/1.69.0 export PYTHON3_VERSION=$(python3 -c "import sys; print(str(sys.version_info.major)+str(sys.version_info.minor))") - export APT_DEPENDENCIES="doxygen libboost-system-dev libboost-test-dev libboost-filesystem-dev libboost-program-options-dev libeigen3-dev liburdfdom-dev texlive-font-utils" - export APT_DEPENDENCIES=$APT_DEPENDENCIES" libboost-python-dev robotpkg-py"$PYTHON3_VERSION"-eigenpy python3-numpy" - export APT_DEPENDENCIES=$APT_DEPENDENCIES" robotpkg-py"$PYTHON3_VERSION"-hpp-fcl" + export APT_DEPENDENCIES="doxygen \ + ccache \ + curl \ + cppcheck \ + libomp-dev \ + libomp5 \ + libboost-system-dev \ + libboost-test-dev \ + libboost-filesystem-dev \ + libboost-program-options-dev \ + libeigen3-dev \ + liburdfdom-dev \ + texlive-font-utils \ + libboost-python-dev \ + robotpkg-py${PYTHON3_VERSION}-eigenpy \ + python3-numpy \ + robotpkg-py${PYTHON3_VERSION}-hpp-fcl" echo $APT_DEPENDENCIES sudo apt-get update -qq - sudo apt-get install -qq curl cppcheck ${APT_DEPENDENCIES} - sudo apt install libomp-dev libomp5 + sudo apt-get install -qq ${APT_DEPENDENCIES} - name: Free disk space run: | sudo apt clean @@ -92,7 +105,6 @@ jobs: git clone https://github.com/casadi/casadi.git -b 3.5.0 --depth 1 cd casadi mkdir build && cd build - export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" cmake .. \ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ -DCMAKE_BUILD_TYPE=Release \ @@ -108,7 +120,6 @@ jobs: export PYTHON3_DOT_VERSION=$(python3 -c "import sys; print(str(sys.version_info.major)+'.'+str(sys.version_info.minor))") export PYTHONPATH=${PYTHONPATH}:/opt/openrobots/lib/python$PYTHON3_DOT_VERSION/site-packages export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/openrobots/lib:/usr/local/lib:/usr/lib:/usr/lib/x86_64-linux-gnu - export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" mkdir build cd build From c0aca42fa2cff5e9f306ba8e7f89a8f0d0d05385 Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Fri, 2 Feb 2024 14:37:16 +0100 Subject: [PATCH 05/11] ci: Use ccache to compile .c with casadi --- .github/workflows/linux.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 577d7a265b..b5ce42f442 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -106,6 +106,7 @@ jobs: cd casadi mkdir build && cd build cmake .. \ + -DCMAKE_C_COMPILER_LAUNCHER=ccache \ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ -DCMAKE_BUILD_TYPE=Release \ -DWITH_EXAMPLES=OFF From fa3665e95fddb66cc4367d40ed12e04d01e178be Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Fri, 2 Feb 2024 15:45:36 +0100 Subject: [PATCH 06/11] ci: Don't build in sudo --- .github/workflows/linux.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index b5ce42f442..6726141ce9 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -110,7 +110,8 @@ jobs: -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ -DCMAKE_BUILD_TYPE=Release \ -DWITH_EXAMPLES=OFF - sudo make -j2 install + make -j2 + sudo make install cd ../.. rm -rf casadi cd .. From af11d5f86fa01ef2c287cd41b2ff720cb6fe8b62 Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Fri, 2 Feb 2024 16:41:48 +0100 Subject: [PATCH 07/11] review: Fix colcon file extension --- .github/workflows/linux.yml | 4 ++-- .github/workflows/macos-linux-conda.yml | 4 ++-- .github/workflows/windows-conda.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 6726141ce9..56801c0722 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -9,7 +9,7 @@ on: - '*.md' - 'CITATION.*' - 'COPYING.LESSER' - - 'colcon.xml' + - 'colcon.pkg' pull_request: paths-ignore: - 'doc/**' @@ -18,7 +18,7 @@ on: - '*.md' - 'CITATION.*' - 'COPYING.LESSER' - - 'colcon.xml' + - 'colcon.pkg' concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/macos-linux-conda.yml b/.github/workflows/macos-linux-conda.yml index fbfe80dbec..eaddaff5c8 100644 --- a/.github/workflows/macos-linux-conda.yml +++ b/.github/workflows/macos-linux-conda.yml @@ -9,7 +9,7 @@ on: - '*.md' - 'CITATION.*' - 'COPYING.LESSER' - - 'colcon.xml' + - 'colcon.pkg' pull_request: paths-ignore: - 'doc/**' @@ -18,7 +18,7 @@ on: - '*.md' - 'CITATION.*' - 'COPYING.LESSER' - - 'colcon.xml' + - 'colcon.pkg' concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/windows-conda.yml b/.github/workflows/windows-conda.yml index f9e7a1deaf..1b6b8cc4d8 100644 --- a/.github/workflows/windows-conda.yml +++ b/.github/workflows/windows-conda.yml @@ -8,7 +8,7 @@ on: - '*.md' - 'CITATION.*' - 'COPYING.LESSER' - - 'colcon.xml' + - 'colcon.pkg' pull_request: paths-ignore: - 'doc/**' @@ -17,7 +17,7 @@ on: - '*.md' - 'CITATION.*' - 'COPYING.LESSER' - - 'colcon.xml' + - 'colcon.pkg' concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true From c0e10a9ab6aacbf24640a62ca1b0b20bb9fc1e80 Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Fri, 2 Feb 2024 17:06:31 +0100 Subject: [PATCH 08/11] ci: Add pre-commit checking workflow --- .github/workflows/check-changelog.yml | 2 +- .github/workflows/pre-commit.yml | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pre-commit.yml diff --git a/.github/workflows/check-changelog.yml b/.github/workflows/check-changelog.yml index da9c25bd22..5088e5b6be 100644 --- a/.github/workflows/check-changelog.yml +++ b/.github/workflows/check-changelog.yml @@ -1,4 +1,4 @@ -name: Check-changelog +name: CI - Check-changelog on: pull_request: types: [assigned, opened, synchronize, reopened, labeled, unlabeled] diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 0000000000..8788adc161 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,13 @@ +name: "CI - pre-commit" + +on: + pull_request: + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - uses: pre-commit/action@v3.0.0 + From f3221642d16fd03de4c36e47b3c03865e3508cdc Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Fri, 2 Feb 2024 17:07:55 +0100 Subject: [PATCH 09/11] Don't trigger build on .pre-commit-config.yaml change --- .github/workflows/linux.yml | 2 ++ .github/workflows/macos-linux-conda.yml | 2 ++ .github/workflows/ros-ci.yml | 2 ++ .github/workflows/windows-conda.yml | 2 ++ 4 files changed, 8 insertions(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 56801c0722..b459755e03 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -10,6 +10,7 @@ on: - 'CITATION.*' - 'COPYING.LESSER' - 'colcon.pkg' + - '.pre-commit-config.yaml' pull_request: paths-ignore: - 'doc/**' @@ -19,6 +20,7 @@ on: - 'CITATION.*' - 'COPYING.LESSER' - 'colcon.pkg' + - '.pre-commit-config.yaml' concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/macos-linux-conda.yml b/.github/workflows/macos-linux-conda.yml index eaddaff5c8..8f0f402481 100644 --- a/.github/workflows/macos-linux-conda.yml +++ b/.github/workflows/macos-linux-conda.yml @@ -10,6 +10,7 @@ on: - 'CITATION.*' - 'COPYING.LESSER' - 'colcon.pkg' + - '.pre-commit-config.yaml' pull_request: paths-ignore: - 'doc/**' @@ -19,6 +20,7 @@ on: - 'CITATION.*' - 'COPYING.LESSER' - 'colcon.pkg' + - '.pre-commit-config.yaml' concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/ros-ci.yml b/.github/workflows/ros-ci.yml index 2d81e99768..1779302822 100644 --- a/.github/workflows/ros-ci.yml +++ b/.github/workflows/ros-ci.yml @@ -14,6 +14,7 @@ on: - '*.md' - 'CITATION.*' - 'COPYING.LESSER' + - '.pre-commit-config.yaml' pull_request: paths-ignore: - 'doc/**' @@ -22,6 +23,7 @@ on: - '*.md' - 'CITATION.*' - 'COPYING.LESSER' + - '.pre-commit-config.yaml' concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true diff --git a/.github/workflows/windows-conda.yml b/.github/workflows/windows-conda.yml index 1b6b8cc4d8..43dc699ec0 100644 --- a/.github/workflows/windows-conda.yml +++ b/.github/workflows/windows-conda.yml @@ -9,6 +9,7 @@ on: - 'CITATION.*' - 'COPYING.LESSER' - 'colcon.pkg' + - '.pre-commit-config.yaml' pull_request: paths-ignore: - 'doc/**' @@ -18,6 +19,7 @@ on: - 'CITATION.*' - 'COPYING.LESSER' - 'colcon.pkg' + - '.pre-commit-config.yaml' concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true From 37dc22adb1b7a4d45590d2b5226fd388d0124c4f Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Fri, 2 Feb 2024 17:14:32 +0100 Subject: [PATCH 10/11] ci: Remove pre-commit workflow since we already have pre-commit.ci setup --- .github/workflows/pre-commit.yml | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 .github/workflows/pre-commit.yml diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml deleted file mode 100644 index 8788adc161..0000000000 --- a/.github/workflows/pre-commit.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: "CI - pre-commit" - -on: - pull_request: - -jobs: - pre-commit: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - - uses: pre-commit/action@v3.0.0 - From 0fab578ffee7dabaea3dce7c79bea8494b871648 Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Fri, 2 Feb 2024 17:15:55 +0100 Subject: [PATCH 11/11] CI: Reduce ccache compresslevel (recommanded setting in the documentation) --- .github/workflows/linux.yml | 2 +- .github/workflows/macos-linux-conda.yml | 2 +- .github/workflows/windows-conda.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index b459755e03..8858806192 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -38,7 +38,7 @@ jobs: CCACHE_BASEDIR: "${GITHUB_WORKSPACE}" CCACHE_DIR: "${GITHUB_WORKSPACE}/.ccache" CCACHE_COMPRESS: true - CCACHE_COMPRESSLEVEL: 6 + CCACHE_COMPRESSLEVEL: 5 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/macos-linux-conda.yml b/.github/workflows/macos-linux-conda.yml index 8f0f402481..8c8a6cf9c4 100644 --- a/.github/workflows/macos-linux-conda.yml +++ b/.github/workflows/macos-linux-conda.yml @@ -33,7 +33,7 @@ jobs: CCACHE_BASEDIR: "${GITHUB_WORKSPACE}" CCACHE_DIR: "${GITHUB_WORKSPACE}/.ccache" CCACHE_COMPRESS: true - CCACHE_COMPRESSLEVEL: 6 + CCACHE_COMPRESSLEVEL: 5 BUILD_ADVANCED_TESTING: ${{ matrix.BUILD_ADVANCED_TESTING }} strategy: diff --git a/.github/workflows/windows-conda.yml b/.github/workflows/windows-conda.yml index 43dc699ec0..1593abfd71 100644 --- a/.github/workflows/windows-conda.yml +++ b/.github/workflows/windows-conda.yml @@ -32,7 +32,7 @@ jobs: CCACHE_BASEDIR: "${GITHUB_WORKSPACE}" CCACHE_DIR: "${GITHUB_WORKSPACE}/.ccache" CCACHE_COMPRESS: true - CCACHE_COMPRESSLEVEL: 6 + CCACHE_COMPRESSLEVEL: 5 strategy: fail-fast: false