2022-02-23 11:31:05 +01:00
|
|
|
name: CMake
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2022-03-03 11:50:25 +01:00
|
|
|
branches: [ develop, master ]
|
2022-02-23 11:31:05 +01:00
|
|
|
|
|
|
|
env:
|
|
|
|
BUILD_TYPE: Release
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
functional_and_mem_tests:
|
2022-09-22 10:55:36 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2022-02-23 11:31:05 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: 'true'
|
|
|
|
|
|
|
|
- name: Install needed libs
|
|
|
|
run: sudo apt update && sudo apt install -y cmake build-essential libmpfr-dev valgrind
|
|
|
|
|
|
|
|
- name: Configure CMake
|
|
|
|
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: make -C ${{github.workspace}}/build -j
|
|
|
|
|
|
|
|
- name: Functional tests
|
|
|
|
working-directory: ${{github.workspace}}/test
|
|
|
|
run: ${{github.workspace}}/build/rpn \"all.md\" test
|
|
|
|
|
|
|
|
- name: Memory tests
|
|
|
|
working-directory: ${{github.workspace}}/test
|
|
|
|
run: ./mem_test.sh ${{github.workspace}}/build/rpn
|