Skip to content

Commit

Permalink
Begin workflow setup
Browse files Browse the repository at this point in the history
  • Loading branch information
leonp-s committed Jan 16, 2024
1 parent 8de6351 commit 0ed6f76
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/zones_convolver_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: zones_convolver_tests

on:
push:
branches: [ main ]

jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: lukka/get-cmake@latest
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: true
- name: Run CMake consuming CMakePreset.json
uses: lukka/run-cmake@v10
with:
configurePreset: 'ninja-multi'
buildPreset: 'build-release'
testPreset: 'test-release'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
cmake-build-debug
*.DS_Store
builds
4 changes: 0 additions & 4 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20,
"patch": 0
},
"configurePresets": [
{
"name": "ninja-multi",
"displayName": "Ninja Multi-Config",
"binaryDir": "${sourceDir}/builds/${presetName}",
"generator": "Ninja Multi-Config"
}
],
"buildPresets": [
{
"name": "build-debug",
"configurePreset": "ninja-multi",
"displayName": "Build (Debug)",
"description": "Build with Ninja (Debug)",
"configuration": "Debug"
},
{
"name": "build-release",
"configurePreset": "ninja-multi",
"displayName": "Build (Release)",
"description": "Build with Ninja (Release)",
"configuration": "Release"
}
],
"testPresets": [
{
"name": "test-debug",
"configurePreset": "ninja-multi",
"configuration": "Debug"
},
{
"name": "test-release",
"configurePreset": "ninja-multi",
"configuration": "Release"
}
]
}

0 comments on commit 0ed6f76

Please sign in to comment.