diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index dece5db..d9f5aef 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -1,10 +1,11 @@ -name: cmake build +name: build & test on: push: - branches: [ "main", "dev" ] + branches: [ "main" ] pull_request: branches: [ "main" ] + workflow_dispatch: # This is the manual trigger env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) @@ -12,9 +13,6 @@ env: jobs: build: - # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. - # You can convert this to a matrix build if you need cross-platform coverage. - # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix runs-on: ubuntu-latest steps: @@ -41,4 +39,8 @@ jobs: - name: Build run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - + # Run Unit Tests + - name: Run Unit Tests + run: | + cd ${{github.workspace}}/build/tests + ./spinwalk_test