Skip to content

Commit

Permalink
Create CI file
Browse files Browse the repository at this point in the history
  • Loading branch information
hbacelar8 committed Feb 12, 2025
1 parent 53a6f27 commit 00d4b00
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/cmake-single-platform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml
name: CMake on a single platform

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

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install dbus-1 library
run: sudo apt-get update && sudo apt-get install -y libdbus-1-dev

- name: lib-debug
run: cmake --preset lib-debug

- name: Build lib-debug
run: cmake --build ${{github.workspace}}/build

- name: lib-release
run: cmake --preset lib-release

- name: Build lib-debug
run: cmake --build ${{github.workspace}}/build

- name: example
run: cmake --preset example

- name: Build lib-debug
run: cmake --build ${{github.workspace}}/build

0 comments on commit 00d4b00

Please sign in to comment.