2021-12-16 19:29:48 +00:00
|
|
|
name: Cmake CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
2022-01-03 15:28:16 +00:00
|
|
|
build-and-test:
|
2021-12-16 19:29:48 +00:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: true
|
2022-01-03 15:28:16 +00:00
|
|
|
- name: cmake-configure
|
2021-12-16 19:29:48 +00:00
|
|
|
uses: lukka/run-cmake@v10
|
|
|
|
with:
|
|
|
|
configurePreset: 'default'
|
2022-01-03 15:28:16 +00:00
|
|
|
- name: cmake-build
|
|
|
|
uses: lukka/run-cmake@v10
|
|
|
|
with:
|
2021-12-16 19:29:48 +00:00
|
|
|
buildPreset: 'default'
|
2022-01-03 15:28:16 +00:00
|
|
|
- name: cmake-test
|
|
|
|
uses: lukka/run-cmake@v10
|
|
|
|
with:
|
2022-01-03 15:00:32 +00:00
|
|
|
testPreset: 'default'
|
2021-12-16 19:29:48 +00:00
|
|
|
- name: artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: linux-build
|
|
|
|
path: |
|
|
|
|
build
|
|
|
|
!build/CMakeCache.txt
|
|
|
|
!build/build.ninja
|
|
|
|
!build/_deps
|
|
|
|
!build/cmake_install.cmake
|
|
|
|
!build/*.a
|