Skip to content

Commit

Permalink
Setup GitHub Actions
Browse files Browse the repository at this point in the history
Closes #15
  • Loading branch information
Lihis committed Feb 4, 2024
1 parent 3b3c14a commit dbdab20
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build and Test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
BUILD_TYPE: Release

jobs:
fedora:
runs-on: ubuntu-latest
container: fedora:latest
steps:
- name: Setup
run: dnf install -y git-core cmake pkgconf gcc bison flex libcmocka-devel gnutls-devel
- uses: actions/checkout@v3
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
run: ctest --test-dir ${{github.workspace}}/build -C ${{env.BUILD_TYPE}}

0 comments on commit dbdab20

Please sign in to comment.