mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-05-01 13:13:53 +00:00
chore: update pre-commit and GHA
This commit is contained in:
parent
99a8edcfcd
commit
7cdd95e312
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -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
|
||||
|
13
.github/workflows/tests.yml
vendored
13
.github/workflows/tests.yml
vendored
@ -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()
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user