Skip to content

Commit

Permalink
chore: add build_and_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 committed Oct 10, 2024
1 parent 853625f commit 04348a5
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: ubuntu_build

'on':
pull_request:
push:
branches:
- main
workflow_dispatch:

env:
build_path: ${{github.workspace}}/build

jobs:
build_and_test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{env.build_path}}

- name: Configure CMake
working-directory: ${{env.build_path}}
run: cmake ../

- name: Build
working-directory: ${{env.build_path}}
run: cmake --build .

- name: Test
working-directory: ${{env.build_path}}
run: ctest
...

0 comments on commit 04348a5

Please sign in to comment.