Skip to content

Commit

Permalink
chore: update pre-commit and GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Jul 28, 2020
1 parent 99a8edc commit 7cdd95e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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()
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7cdd95e

Please sign in to comment.