Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
* larger cache on Linux
* use ninja on Windows
  • Loading branch information
RainerKuemmerle committed Aug 13, 2023
1 parent 138f565 commit 6905029
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
uses: hendrikmuhs/[email protected]
with:
key: ${{ matrix.os }}-${{ matrix.type }}
max-size: 1000M
max-size: 2000M

- name: Install dependencies on Ubuntu
if: runner.os == 'Linux'
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,26 @@ jobs:
name: "Windows 2022 MSVC",
os: windows-2022,
build_type: "Debug",
environment_script: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat",
generators: "Visual Studio 17 2022"
generators: "Ninja"
}


steps:
- uses: actions/checkout@v3
with:
fetch-depth: 25

- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Setup VS Environment
uses: seanmiddleditch/gha-setup-vsdevenv@master

- name: Print env
run: |
echo github.ref: ${{github.ref}}
echo github.event.action: ${{github.event.action}}
echo github.event_name: ${{github.event_name}}
echo runner.os: ${{runner.os}}
Get-ChildItem Env:
- name: Install libraries with vcpkg
run: |
Expand All @@ -48,15 +52,15 @@ jobs:
- name: Configure CMake
run: |
cmake --version
cmake -B ${{github.workspace}}/build -G "${{matrix.config.generators}}" -A x64 -DBUILD_UNITTESTS=ON -DG2O_BUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake
cmake -B ${{github.workspace}}/build -G "${{matrix.config.generators}}" -DBUILD_UNITTESTS=ON -DG2O_BUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake
- name: Build Introspection
run: |
echo "g2o config.h"
type ${{github.workspace}}/build/g2o/config.h
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.config.build_type}} -j 2
run: cmake --build ${{github.workspace}}/build -j 2

- name: Test
run: |
Expand Down

0 comments on commit 6905029

Please sign in to comment.