diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b9a4f1f..3b3c1e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,7 @@ env: PROJECT_NAME: "uavpc" build_type: Release BIN_FILES_PATH: build/bin/Release + install_location: .local jobs: build: @@ -29,7 +30,7 @@ jobs: id: cache with: path: ${{ github.HOME }}/.local - key: ${{ runner.os }}-dependencies + key: ${{ runner.os }}-release-dependencies - name: install Catch2 if: steps.cache.outputs.cache-hit != 'true' @@ -128,6 +129,14 @@ jobs: - name: build run: cmake --build build --config ${{ env.build_type }} -j4 + - name: run tests + run: | + cd build + ctest -C $BUILD_TYPE -VV --output-on-failure -j 8 + + - name: install project + run: cmake --build build --target install --config ${{ env.build_type }} + - name: generate archive run: | cd $BIN_FILES_PATH