From cdeb4464e229c9f74b9f8181af498b9968934e7e Mon Sep 17 00:00:00 2001 From: fallenoak Date: Fri, 21 Nov 2025 15:53:51 -0600 Subject: [PATCH] chore(build): install before test --- .github/workflows/pr.yml | 15 +++++++++++---- .github/workflows/push.yml | 15 +++++++++++---- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 0b49682..addfd91 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -28,7 +28,7 @@ jobs: - name: Windows Latest (MSVC) os: windows-latest build_type: Release - test_path: Release/WhoaTest + test_path: WhoaTest cc: cl cxx: cl @@ -41,10 +41,17 @@ jobs: run: mkdir build - name: Configure - run: cd build && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} + run: cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} + working-directory: build - name: Build - run: cmake --build build --config ${{ matrix.config.build_type }} + run: cmake --build . --config ${{ matrix.config.build_type }} + working-directory: build + + - name: Install + run: cmake --install . --config ${{ matrix.config.build_type }} + working-directory: build - name: Test - run: ./build/bin/${{ matrix.config.test_path }} + run: ./dist/bin/${{ matrix.config.test_path }} + working-directory: build diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 69fc1c2..69adc23 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -31,7 +31,7 @@ jobs: - name: Windows Latest (MSVC) os: windows-latest build_type: Release - test_path: Release/WhoaTest + test_path: WhoaTest cc: cl cxx: cl @@ -44,10 +44,17 @@ jobs: run: mkdir build - name: Configure - run: cd build && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} + run: cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} + working-directory: build - name: Build - run: cmake --build build --config ${{ matrix.config.build_type }} + run: cmake --build . --config ${{ matrix.config.build_type }} + working-directory: build + + - name: Install + run: cmake --install . --config ${{ matrix.config.build_type }} + working-directory: build - name: Test - run: ./build/bin/${{ matrix.config.test_path }} + run: ./dist/bin/${{ matrix.config.test_path }} + working-directory: build