From 3bf6b1877138c53b02e390753197edabb197c657 Mon Sep 17 00:00:00 2001 From: solar-mist <95101597+solar-mist@users.noreply.github.com> Date: Thu, 6 Jul 2023 20:06:12 +0000 Subject: [PATCH] Update cmake.yml --- .github/workflows/cmake.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) 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