From 8978a0369e964c9b6383e8b85eb9cf23bbd4cb76 Mon Sep 17 00:00:00 2001 From: Jon Date: Sat, 28 Oct 2023 11:18:42 -0700 Subject: [PATCH 1/3] install as part of CI job --- .github/workflows/build_cmake.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index 9e9807df..ccbb5425 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -45,8 +45,11 @@ jobs: submodules: true persist-credentials: false - name: Configure - run: cd build && cmake .. + run: cmake -B build -S . -DCMAKE_INSTALL_PREFIX=./install_test - name: Build C++ unit tests run: cmake --build build --config Release - name: Run C++ tests run: cmake --build build --config Release --target ${{ matrix.config.test_target }} + - name: Install headers + run: sudo cmake --build build -t install + \ No newline at end of file From a7d45f326076092444590ed2c01394ef2ff3b52b Mon Sep 17 00:00:00 2001 From: Jon Date: Sat, 28 Oct 2023 11:30:19 -0700 Subject: [PATCH 2/3] remove sudo inadvertently left in (Windows doesn't use sudo) --- .github/workflows/build_cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index ccbb5425..3244f2fa 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -51,5 +51,5 @@ jobs: - name: Run C++ tests run: cmake --build build --config Release --target ${{ matrix.config.test_target }} - name: Install headers - run: sudo cmake --build build -t install + run: cmake --build build -t install \ No newline at end of file From 08875c27276133fb330be7686dd1cbfcfa0999d0 Mon Sep 17 00:00:00 2001 From: Jon Date: Sat, 28 Oct 2023 11:41:32 -0700 Subject: [PATCH 3/3] remove excess whitespace --- .github/workflows/build_cmake.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index 3244f2fa..a7cd6b70 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -52,4 +52,3 @@ jobs: run: cmake --build build --config Release --target ${{ matrix.config.test_target }} - name: Install headers run: cmake --build build -t install - \ No newline at end of file