Add Github Actions build file

This commit is contained in:
Victor Antonovich 2021-11-12 18:50:16 +03:00 committed by GitHub
parent 1efb812013
commit 868d605f5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

32
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: mbusd
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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
run: make test