Skip to content

Commit 07d3cd5

Browse files
committed
Add more building environments
1 parent 7e20596 commit 07d3cd5

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

.github/workflows/cmake.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,40 @@
1-
name: Build And Test
1+
name: CMake
22

33
on:
44
push:
5-
branches: [ develop ]
5+
branches:
6+
- develop
67
pull_request:
7-
branches: [ develop ]
8+
branches:
9+
- develop
810

911
env:
10-
BUILD_TYPE: Release
12+
BUILD_TYPE: RelWithDebInfo
13+
# Conan cache environment variables
14+
CONAN_SYSREQUIRES_MODE: enabled
15+
CONAN_USER_HOME: "${{ github.workspace }}/conan-cache"
16+
CONAN_USER_HOME_SHORT: "${{ github.workspace }}/conan-cache/short"
1117

1218
jobs:
1319
build:
14-
runs-on: ubuntu-latest
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
24+
runs-on: ${{ matrix.os }}
1525

1626
steps:
1727
- uses: actions/checkout@v2
28+
29+
- name: Cache
30+
uses: actions/cache@v2
31+
env:
32+
cache-name: cache-conan-modules
33+
with:
34+
path: |
35+
${{ env.CONAN_USER_HOME }}
36+
~/.cache/pip
37+
key: ${{ runner.os }}-${{ env.BUILD_TYPE }}-${{ hashFiles('CMakeLists.txt') }}-${{ hashFiles('cmake/Conan.cmake') }}
1838

1939
- name: Get Conan
2040
uses: turtlebrowser/[email protected]
@@ -28,4 +48,3 @@ jobs:
2848
- name: Test
2949
working-directory: ${{github.workspace}}/build
3050
run: ctest -C ${{env.BUILD_TYPE}}
31-

0 commit comments

Comments
 (0)