Skip to content

Commit

Permalink
more cmake github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
okram committed Jun 17, 2024
1 parent ea5697c commit 2a0b12a
Showing 1 changed file with 36 additions and 15 deletions.
51 changes: 36 additions & 15 deletions .github/workflows/cmake-single-platform.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 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
name: CMake FhatOS using Ubuntu

on:
push:
Expand All @@ -14,24 +14,45 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
submodules: 'true'

- name: Fhat-Dev Build
working-directory: ${{github.workspace}}
run: sudo bin/fhat-dev build
- name: Install Python
uses: actions/setup-python@v1

- name: Fhat-Dev Test
working-directory: ${{github.workspace}}
run: sudo bin/fhat-dev test
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install platformio
- name: Cmake
working-directory: ${{github.workspace}}
run: cmake .
- name: Install PlatformIO Library
run: pio lib install

- name: Make
- name: Fhat-Dev Build
working-directory: ${{github.workspace}}
run: make
env:
CC: clang
run: |
chmod 777 bin/fhat-dev
bin/fhat-dev build
- name: CTest
working-directory: ${{github.workspace}}/test
run: ctest
- 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

0 comments on commit 2a0b12a

Please sign in to comment.