diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index d830c09..f0a027f 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -1,10 +1,8 @@ name: ubuntu -on: +on: | push - -env: - BUILD_TYPE: Release + pull_request jobs: build: @@ -14,7 +12,7 @@ jobs: - uses: actions/checkout@v3 - name: Setup g++ - run: + run: | sudo apt update sudo apt install g++ @@ -22,15 +20,8 @@ jobs: run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - name: Build - # Build your program with the given configuration - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} - - tests: - runs-on: ubuntu-latest + run: cmake --build ${{github.workspace}}/build - steps: - - uses: actions/checkout@v3 - - name: Test working-directory: ${{github.workspace}}/build run: ./viper_tests