Skip to content

Commit 7cdd95e

Browse files
committed
chore: update pre-commit and GHA
1 parent 99a8edc commit 7cdd95e

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

.github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818

19-
- uses: actions/checkout@v1
19+
- uses: actions/checkout@v2
2020
with:
2121
submodules: true
2222

23-
- uses: actions/setup-python@v1
23+
- uses: actions/setup-python@v2
2424

2525
- name: Make header
2626
run: python ./scripts/MakeSingleHeader.py CLI11.hpp
@@ -37,12 +37,12 @@ jobs:
3737
cp build/CLI11-*-Source.* CLI11-Source
3838
cp build/CLI11-*-Source.* .
3939
40-
- uses: actions/upload-artifact@v1
40+
- uses: actions/upload-artifact@v2
4141
with:
4242
name: CLI11.hpp
4343
path: CLI11.hpp
4444

45-
- uses: actions/upload-artifact@v1
45+
- uses: actions/upload-artifact@v2
4646
with:
4747
name: CLI11-Source
4848
path: CLI11-Source

.github/workflows/tests.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
submodules: true
2828
- name: Add wget
2929
run: apt-get update && apt-get install -y wget
30-
- name: Install Modern CMake
31-
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
30+
- name: Setup cmake
31+
uses: jwlawson/actions-setup-cmake@v1.3
3232
- name: Configure
3333
run: cmake -S . -B build -DCLI11_CUDA_TESTS=ON
3434
- name: Build
@@ -38,7 +38,7 @@ jobs:
3838
name: CMake config check
3939
runs-on: ubuntu-latest
4040
steps:
41-
- uses: actions/checkout@v1
41+
- uses: actions/checkout@v2
4242
with:
4343
submodules: true
4444
- name: CMake 3.4
@@ -106,9 +106,14 @@ jobs:
106106
with:
107107
version: 3.16.8
108108
if: success() || failure()
109-
- name: CMake 3.16 (full)
109+
- name: CMake 3.17
110110
uses: ./.github/actions/cmake_config
111111
with:
112112
version: 3.17.3
113+
if: success() || failure()
114+
- name: CMake 3.18 (full)
115+
uses: ./.github/actions/cmake_config
116+
with:
117+
version: 3.18.0
113118
options: -DCLI11_SANITIZERS=ON -DCLI11_BUILD_EXAMPLES_JSON=ON
114119
if: success() || failure()

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22
repos:
33
- repo: https://github.com/psf/black
4-
rev: 19.3b0
4+
rev: 19.10b0
55
hooks:
66
- id: black
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v2.3.0
8+
rev: v3.1.0
99
hooks:
1010
- id: check-added-large-files
1111
- id: mixed-line-ending

0 commit comments

Comments
 (0)