Skip to content

more cmake github actions. #11

more cmake github actions.

more cmake github actions. #11

# 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 FhatOS using Ubuntu
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Install Python
uses: actions/setup-python@v1
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install platformio
- name: Install PlatformIO Library
run: pio lib install
- name: Fhat-Dev Build
working-directory: ${{github.workspace}}
env:
CC: clang
run: |
chmod 777 bin/fhat-dev
bin/fhat-dev build
- name: Fhat-Dev Test
working-directory: ${{github.workspace}}
env:
CC: clang
run: |
chmod 777 bin/fhat-dev
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