File tree Expand file tree Collapse file tree 1 file changed +25
-6
lines changed
Expand file tree Collapse file tree 1 file changed +25
-6
lines changed Original file line number Diff line number Diff line change 1- name : Build And Test
1+ name : CMake
22
33on :
44 push :
5- branches : [ develop ]
5+ branches :
6+ - develop
67 pull_request :
7- branches : [ develop ]
8+ branches :
9+ - develop
810
911env :
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
1218jobs :
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] 2848 - name : Test
2949 working-directory : ${{github.workspace}}/build
3050 run : ctest -C ${{env.BUILD_TYPE}}
31-
You can’t perform that action at this time.
0 commit comments