From 7cdd95e312e52f5866f475c96eef39982a2d6484 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 24 Jul 2020 16:33:58 -0400 Subject: [PATCH] chore: update pre-commit and GHA --- .github/workflows/build.yml | 8 ++++---- .github/workflows/tests.yml | 13 +++++++++---- .pre-commit-config.yaml | 4 ++-- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 35864c09..03470fd1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,11 +16,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 with: submodules: true - - uses: actions/setup-python@v1 + - uses: actions/setup-python@v2 - name: Make header run: python ./scripts/MakeSingleHeader.py CLI11.hpp @@ -37,12 +37,12 @@ jobs: cp build/CLI11-*-Source.* CLI11-Source cp build/CLI11-*-Source.* . - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v2 with: name: CLI11.hpp path: CLI11.hpp - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v2 with: name: CLI11-Source path: CLI11-Source diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9e111b50..c6111723 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,8 +27,8 @@ jobs: submodules: true - name: Add wget run: apt-get update && apt-get install -y wget - - name: Install Modern CMake - run: wget -qO- "https://cmake.org/files/v3.16/cmake-3.16.0-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C /usr/local + - name: Setup cmake + uses: jwlawson/actions-setup-cmake@v1.3 - name: Configure run: cmake -S . -B build -DCLI11_CUDA_TESTS=ON - name: Build @@ -38,7 +38,7 @@ jobs: name: CMake config check runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 with: submodules: true - name: CMake 3.4 @@ -106,9 +106,14 @@ jobs: with: version: 3.16.8 if: success() || failure() - - name: CMake 3.16 (full) + - name: CMake 3.17 uses: ./.github/actions/cmake_config with: version: 3.17.3 + if: success() || failure() + - name: CMake 3.18 (full) + uses: ./.github/actions/cmake_config + with: + version: 3.18.0 options: -DCLI11_SANITIZERS=ON -DCLI11_BUILD_EXAMPLES_JSON=ON if: success() || failure() diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 937cce32..b0c86be1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,11 @@ repos: - repo: https://github.com/psf/black - rev: 19.3b0 + rev: 19.10b0 hooks: - id: black - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.3.0 + rev: v3.1.0 hooks: - id: check-added-large-files - id: mixed-line-ending