Add a check to see whether cmkr was run before pushing

vcpkg-wip
Duncan Ogilvie 4 years ago
parent 6395267e4b
commit 34c12379c2

@ -19,8 +19,14 @@ jobs:
- name: Build - name: Build
run: | run: |
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} "-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/install"
cmake --build build --config ${{ env.BUILD_TYPE }} --parallel cmake --build build --config ${{ env.BUILD_TYPE }} --parallel
cmake --install build --config ${{ env.BUILD_TYPE }}
- name: Check if cmkr was run
run: |
./install/bin/cmkr gen
git diff --exit-code
- name: Test - name: Test
run: | run: |

@ -16,7 +16,7 @@ namespace build {
int run(int argc, char **argv) { int run(int argc, char **argv) {
cmake::CMake cmake(".", true); cmake::CMake cmake(".", true);
if (argc > 2) { if (argc > 2) {
for (size_t i = 2; i < argc; ++i) { for (int i = 2; i < argc; ++i) {
cmake.build_args.push_back(argv[i]); cmake.build_args.push_back(argv[i]);
} }
} }

Loading…
Cancel
Save