Skip to content

Commit

Permalink
fix release pipeline cache and add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
filipdutescu committed Aug 6, 2021
1 parent 1a45467 commit efb3726
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ env:
PROJECT_NAME: "uavpc"
build_type: Release
BIN_FILES_PATH: build/bin/Release
install_location: .local

jobs:
build:
Expand All @@ -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'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit efb3726

Please sign in to comment.