Return error code from tests (#137)
[debian/pforth] / .github / workflows / cmake.yml
1 name: CMake
2
3 on:
4   push:
5     branches: [ master ]
6   pull_request:
7     branches: [ master ]
8   workflow_dispatch:
9
10 env:
11   # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
12   BUILD_TYPE: Release
13
14 jobs:
15   build:
16     # The CMake configure and build commands are platform agnostic and should work equally
17     # well on Windows or Mac.  You can convert this to a matrix build if you need
18     # cross-platform coverage.
19     # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
20     runs-on: ubuntu-latest
21
22     steps:
23     - uses: actions/checkout@v2
24
25     - name: Configure CMake
26       run: cmake ${{github.workspace}}/.
27
28     - name: Build
29       run: cmake --build ${{github.workspace}}/.
30
31     - name: Test
32       working-directory: ${{github.workspace}}/fth
33       run: |
34         ./pforth_standalone t_corex.fth
35         ./pforth_standalone t_strings.fth
36         ./pforth_standalone t_locals.fth
37         ./pforth_standalone t_alloc.fth
38         ./pforth_standalone t_floats.fth
39         ./pforth_standalone t_file.fth