mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-08-30 13:41:13 +02:00
* update CPM.cmake to 0.28.0 * cache CPM.cmake dependencies * create modules directory if it doesn't exist on windows * experiment with env variable * experiment 2 * experiment 3 * use env for all workflows * make cache keys OS dependent * replace env.GITHUB_ with github.workspace * format workflow files * update cache key * use unique key for each workflow
34 lines
729 B
YAML
34 lines
729 B
YAML
name: Style
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: "**/cpm_modules"
|
|
key: ${{ github.action }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
|
|
|
|
- name: Install format dependencies
|
|
run: |
|
|
brew install clang-format
|
|
pip3 install cmake_format==0.6.11 pyyaml
|
|
|
|
- name: configure
|
|
env:
|
|
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
|
|
run: cmake -Stest -Bbuild
|
|
|
|
- name: check style
|
|
run: cmake --build build --target check-format
|