Skip to content

Commit

Permalink
Merge pull request #16 from Lihis/setup-github-actions
Browse files Browse the repository at this point in the history
Setup GitHub Actions
  • Loading branch information
n0la authored Feb 6, 2024
2 parents 3b3c14a + dbdab20 commit e79f8d3
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 e79f8d3

Please sign in to comment.