Skip to content

added local build script to Github Actions. #10

added local build script to Github Actions.

added local build script to Github Actions. #10

# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml
name: CMake on a single platform
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Fhat-Dev Build
working-directory: ${{github.workspace}}
run: sudo bin/fhat-dev build
- name: Fhat-Dev Test
working-directory: ${{github.workspace}}
run: sudo bin/fhat-dev test
- name: Cmake
working-directory: ${{github.workspace}}
run: cmake .
- name: Make
working-directory: ${{github.workspace}}
run: make
- name: CTest
working-directory: ${{github.workspace}}/test
run: ctest