Upgrade the CI
Add .clang-format and .clang-tidy Setup a cache integrate the setup-cpp action stuff
This commit is contained in:
29
.github/workflows/ci.yml
vendored
29
.github/workflows/ci.yml
vendored
@@ -21,10 +21,12 @@ jobs:
|
||||
matrix:
|
||||
os: [windows-latest, ubuntu-latest, macos-latest]
|
||||
build_configuration: [Debug, Release]
|
||||
compiler: [llvm, gcc]
|
||||
include:
|
||||
- os: 'windows-latest'
|
||||
triplet: x64-windows
|
||||
vcpkg_bootstrap: bootstrap-vcpkg.bat
|
||||
compiler: "msvc"
|
||||
- os: 'ubuntu-latest'
|
||||
triplet: x64-linux
|
||||
vcpkg_bootstrap: bootstrap-vcpkg.sh
|
||||
@@ -38,6 +40,33 @@ jobs:
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/vcpkg
|
||||
./build/vcpkg_installed
|
||||
${{ env.HOME }}/.cache/vcpkg/archives
|
||||
${{ env.XDG_CACHE_HOME }}/vcpkg/archives
|
||||
${{ env.LOCALAPPDATA }}\vcpkg\archives
|
||||
${{ env.APPDATA }}\vcpkg\archives
|
||||
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ env.BUILD_TYPE }}-${{ hashFiles('**/CMakeLists.txt') }}-${{ hashFiles('./vcpkg.json')}}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-${{ env.BUILD_TYPE }}-
|
||||
|
||||
- name: setup dependencies
|
||||
uses: aminya/setup-cpp@v1
|
||||
with:
|
||||
compiler: ${{ matrix.compiler }}
|
||||
vcvarsall: ${{ contains(matrix.os, 'windows' )}}
|
||||
|
||||
cmake: true
|
||||
ninja: true
|
||||
vcpkg: true
|
||||
ccache: true
|
||||
clangtidy: ${{ env.CLANG_TIDY_VERSION }}
|
||||
cppcheck: true
|
||||
|
||||
- name: Boostrap Vcpkg
|
||||
run: ${{github.workspace}}/external/vcpkg/${{matrix.vcpkg_bootstrap}} -disableMetrics
|
||||
|
||||
|
||||
Reference in New Issue
Block a user