Skip to content

Commit

Permalink
Update cmake.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
solar-mist committed Jul 6, 2023
1 parent 920c1a3 commit 3bf6b18
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: ubuntu

on:
on: |
push

env:
BUILD_TYPE: Release
pull_request
jobs:
build:
Expand All @@ -14,23 +12,16 @@ jobs:
- uses: actions/checkout@v3

- name: Setup g++
run:
run: |
sudo apt update
sudo apt install g++
- name: Configure CMake
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
Expand Down

0 comments on commit 3bf6b18

Please sign in to comment.