Skip to content

Commit

Permalink
feat: add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
F33RNI committed Feb 26, 2024
1 parent 0ee6ef1 commit e9365bf
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build and run tests

on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
merge_group:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Update list of packages
run: sudo apt-get update
- name: Install make and cmake
run: sudo apt-get install -y make cmake
- name: Create build directory
run: mkdir -p build
- name: Configure project
run: cmake -B build -DTESTS=ON -DLOGGER_LEVEL=1
- name: Build tests
run: cmake --build build --config Release
- name: Run tests
run: build/petalflow_tests

0 comments on commit e9365bf

Please sign in to comment.