55 branches :
66 - develop
77 - main
8- - release/*
8+ paths :
9+ - .github/workflows/macos.yml
10+ - cmake/**
11+ - include/**
12+ - single_include/**
13+ - test/**
14+ - CMakeLists.txt
915 pull_request :
16+ paths :
17+ - .github/workflows/macos.yml
18+ - cmake/**
19+ - include/**
20+ - single_include/**
21+ - test/**
22+ - CMakeLists.txt
1023 workflow_dispatch :
1124
1225concurrency :
1730 JOBS : 4
1831
1932jobs :
33+ macos-latest :
34+ timeout-minutes : 10
35+ runs-on : macos-latest
36+ strategy :
37+ matrix :
38+ build_type : [ Debug, Release ]
39+ single_header : ["ON", "OFF"]
40+
41+ steps :
42+ - uses : actions/checkout@v3
43+ with :
44+ submodules : recursive
45+
46+ - name : Configure CMake
47+ run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DFK_YAML_BUILD_TEST=ON -DFK_YAML_USE_SINGLE_HEADER=${{matrix.single_header}}
48+
49+ - name : Build
50+ run : cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} -j ${{env.JOBS}}
51+
52+ - name : Test
53+ working-directory : ${{github.workspace}}/build
54+ run : ctest -C ${{matrix.build_type}} --output-on-failure -j ${{env.JOBS}}
55+
2056 xcode_for_macos11 :
2157 timeout-minutes : 10
2258 runs-on : macos-11
2359 strategy :
2460 matrix :
2561 xcode : [ '11.7', '12.4', '12.5.1', '13.0', '13.1', '13.2.1' ]
62+ build_type : [ Debug, Release ]
2663 env :
2764 DEVELOPER_DIR : /Applications/Xcode_${{matrix.xcode}}.app/Contents/Developer
2865
@@ -32,21 +69,22 @@ jobs:
3269 submodules : recursive
3370
3471 - name : Configure CMake
35- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Debug -DFK_YAML_BUILD_TEST=ON
72+ run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DFK_YAML_BUILD_TEST=ON
3673
3774 - name : Build
38- run : cmake --build ${{github.workspace}}/build --config Debug -j ${{env.JOBS}}
75+ run : cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} -j ${{env.JOBS}}
3976
4077 - name : Test
4178 working-directory : ${{github.workspace}}/build
42- run : ctest -C Debug --output-on-failure -j${{env.JOBS}}
79+ run : ctest -C ${{matrix.build_type}} --output-on-failure -j${{env.JOBS}}
4380
4481 xcode_for_macos12 :
4582 timeout-minutes : 10
4683 runs-on : macos-12
4784 strategy :
4885 matrix :
4986 xcode : [ '13.1', '13.2.1', '13.3.1', '13.4.1', '14.0.1', '14.1', '14.2' ]
87+ build_type : [ Debug, Release ]
5088 env :
5189 DEVELOPER_DIR : /Applications/Xcode_${{matrix.xcode}}.app/Contents/Developer
5290
@@ -56,11 +94,11 @@ jobs:
5694 submodules : recursive
5795
5896 - name : Configure CMake
59- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Debug -DFK_YAML_BUILD_TEST=ON
97+ run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DFK_YAML_BUILD_TEST=ON
6098
6199 - name : Build
62- run : cmake --build ${{github.workspace}}/build --config Debug -j ${{env.JOBS}}
100+ run : cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} -j ${{env.JOBS}}
63101
64102 - name : Test
65103 working-directory : ${{github.workspace}}/build
66- run : ctest -C Debug --output-on-failure -j${{env.JOBS}}
104+ run : ctest -C ${{matrix.build_type}} --output-on-failure -j${{env.JOBS}}
0 commit comments