Skip to content

Commit

Permalink
Updating github actions to use CMake.
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonAHendry committed Aug 1, 2023
1 parent f0b9858 commit 70a2033
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 77 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build-Test
on: [push, pull_request]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}} -VV

37 changes: 0 additions & 37 deletions .github/workflows/checks_develop.yaml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/checks_master.yaml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ build/
!build/cmake/modules/*

# Python
__pycache__
notebooks
*.ipynb
*.ipynb_checkpoints
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/build/cmake/modules/")

# Compilation flags
set(COMPILE_TESTS OFF)
set(COMPILE_TESTS ON)


# ================================================================================
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
<p align="center"><img src="images/logo.png" width="700"></p>

<!-- badges: start -->
[![checks_develop](https://github.com/mrc-ide/Tapestry/workflows/checks_develop/badge.svg)](https://github.com/mrc-ide/Tapestry/actions)
[![checks_master](https://github.com/mrc-ide/Tapestry/workflows/checks_master/badge.svg)](https://github.com/mrc-ide/Tapestry/actions)
![build](https://github.com/JasonAHendry/apropos-mcmc/actions/workflows/cmake.yml/badge.svg)
<!-- badges: end -->

Malaria infections often contain multiple genotypes, and when sequenced together
Expand Down

0 comments on commit 70a2033

Please sign in to comment.