Skip to content

Commit

Permalink
CI: Add linux build github action
Browse files Browse the repository at this point in the history
  • Loading branch information
kperdlich committed Sep 24, 2024
1 parent 848f541 commit 299e427
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Linux Build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: sudo apt-get install cmake gcc g++ ninja-build

- name: Create build directory
run: mkdir -p build

- name: Configure CMake
working-directory: ./build
run: cmake -G Ninja ..

- name: Build
working-directory: ./build
run: cmake --build .

- name: Runs tests
working-directory: ./build
run: ctest


0 comments on commit 299e427

Please sign in to comment.