@@ -32,37 +32,31 @@ jobs:
3232 generator : " Unix Makefiles" ,
3333 build_type : " Debug" ,
3434 cc : " gcc" , cxx: "g++",
35- extra_path : " "
35+ extra_path : " " ,
3636 }
3737 - {
3838 name : " macOS Latest Clang" ,
3939 os : macos-latest,
4040 generator : " Unix Makefiles" ,
4141 build_type : " Debug" ,
4242 cc : " clang" , cxx: "clang++",
43- extra_path : " "
43+ extra_path : " " ,
4444 }
4545
4646 steps :
47- - uses : actions/checkout@v3
48- - name : submodule
49- run : git submodule update --init --recursive
50- - name : extra_path
47+ - name : Checkout ${{ github.ref }}
48+ uses : actions/checkout@v3
49+ - run : git submodule update --init --recursive
50+ - name : set extra GITHUB_PATH (for MinGW)
5151 shell : bash
52- run : echo "${{matrix.config.extra_path}}" >> $GITHUB_PATH
53- - name : configure
52+ run : echo "${{ matrix.config.extra_path }}" >> $GITHUB_PATH
53+ - name : set env CXX=${{ matrix.config.cxx }}
5454 shell : cmake -P {0}
5555 run : |
56- set(ENV{CC} ${{matrix.config.cc}})
57- set(ENV{CXX} ${{matrix.config.cxx}})
58- - name : generate
59- run : |
60- mkdir build
61- cd build
62- cmake -G "${{matrix.config.generator}}" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON -DSQLITECPP_RUN_CPPCHECK=OFF -DSQLITECPP_RUN_CPPLINT=OFF ..
63- - name : build
64- run : cmake --build build --config ${{matrix.config.build_type}}
65- - name : test
66- run : |
67- cd build
68- ctest --verbose --output-on-failure
56+ set(ENV{CC} ${{ matrix.config.cc }})
57+ set(ENV{CXX} ${{ matrix.config.cxx }})
58+ - run : mkdir build
59+ - run : cmake -G "${{ matrix.config.generator }}" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON -DSQLITECPP_RUN_CPPCHECK=OFF -DSQLITECPP_RUN_CPPLINT=OFF ..
60+ working-directory : build
61+ - run : cmake --build build --config ${{ matrix.config.build_type }}
62+ - run : ctest --verbose --output-on-failure --test-dir build
0 commit comments