fcf957624fe35a805a6042572139e2c034cc44a0
[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 | tee temp.txt && grep "0 failed" temp.txt
35         ./pforth_standalone t_strings.fth | tee temp.txt && grep "0 failed" temp.txt
36         ./pforth_standalone t_locals.fth | tee temp.txt && grep "0 failed" temp.txt
37         ./pforth_standalone t_alloc.fth | tee temp.txt && grep "PASSED" temp.txt
38