Skip to content

Commit

Permalink
feat: switch from CMake to rake
Browse files Browse the repository at this point in the history
  • Loading branch information
berdal84 committed Nov 19, 2024
1 parent 0a7e629 commit 380616a
Show file tree
Hide file tree
Showing 7 changed files with 155 additions and 633 deletions.
105 changes: 50 additions & 55 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false # see https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#handling-failures
runs-on: ${{ matrix.os }}
env:
BUILD_TYPE: Release # possible options: MinSizeRel Release, Debug, RelWithDebInfo
BUILD_TYPE: Debug # possible options: Release, Debug, RelWithDebInfo (we use the same with rake)
BUILD_PATH: cmake-build
INSTALL_PATH: out
steps:
Expand Down Expand Up @@ -47,61 +47,56 @@ jobs:
git submodule init
git submodule update
- name: Create Build Environment
# Some projects don't allow in-source building, so create a separate build directory
# We'll use this as our working directory for all subsequent commands
run: cmake -E make_directory ${{env.BUILD_PATH}}

- name: Configure CMake
shell: bash
working-directory: ${{env.BUILD_PATH}}
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DGITHUB_REF_NAME=${{github.ref_name}} -DGITHUB_SHA=${{github.sha}}
# - name: Configure CMake
# shell: bash
# working-directory: ${{env.BUILD_PATH}}
# run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DGITHUB_REF_NAME=${{github.ref_name}} -DGITHUB_SHA=${{github.sha}}

- name: Build
working-directory: ${{env.BUILD_PATH}}
shell: bash
run: cmake --build . --config ${{env.BUILD_TYPE}} --target install

- name: CTest
working-directory: ${{env.BUILD_PATH}}
shell: bash
run: ctest -C ${{env.BUILD_TYPE}} --verbose --output-on-failure

- name: CPack
working-directory: ${{env.BUILD_PATH}}
shell: bash
run: cpack -C ${{env.BUILD_TYPE}}

- name: Binary Artifact
uses: actions/upload-artifact@v4
with:
name: nodable-${{ runner.os }}
path: ${{env.INSTALL_PATH}}/app/*

- name: Package Artifact
uses: actions/upload-artifact@v4
with:
name: nodable-package-${{ runner.os }}
path: |
!${{env.INSTALL_PATH}}/package/_CPack_Packages
${{env.INSTALL_PATH}}/package/*.*
doxygen:
runs-on: [ubuntu-20.04]
needs: [build]
if: ${{ success() }} # see https://docs.github.com/en/actions/learn-github-actions/expressions#status-check-functions
steps:
- name: Git recursive checkout
uses: actions/checkout@v4

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install doxygen

- name: Generate documentation
run: cd docs && doxygen

- name: Upload documentation artifact
uses: actions/upload-artifact@v4
with:
name: Nodable-Technical-Documentation
path: ${{runner.workspace}}/Nodable/docs/doxygen
run: rake build --trace

# - name: CTest
# working-directory: ${{env.BUILD_PATH}}
# shell: bash
# run: ctest -C ${{env.BUILD_TYPE}} --verbose --output-on-failure
#
# - name: CPack
# working-directory: ${{env.BUILD_PATH}}
# shell: bash
# run: cpack -C ${{env.BUILD_TYPE}}
#
# - name: Binary Artifact
# uses: actions/upload-artifact@v4
# with:
# name: nodable-${{ runner.os }}
# path: ${{env.INSTALL_PATH}}/app/*
#
# - name: Package Artifact
# uses: actions/upload-artifact@v4
# with:
# name: nodable-package-${{ runner.os }}
# path: |
# !${{env.INSTALL_PATH}}/package/_CPack_Packages
# ${{env.INSTALL_PATH}}/package/*.*
#
# doxygen:
# runs-on: [ubuntu-20.04]
# needs: [build]
# if: ${{ success() }} # see https://docs.github.com/en/actions/learn-github-actions/expressions#status-check-functions
# steps:
# - name: Git recursive checkout
# uses: actions/checkout@v4
#
# - name: Install dependencies
# run: sudo apt-get update && sudo apt-get install doxygen
#
# - name: Generate documentation
# run: cd docs && doxygen
#
# - name: Upload documentation artifact
# uses: actions/upload-artifact@v4
# with:
# name: Nodable-Technical-Documentation
# path: ${{runner.workspace}}/Nodable/docs/doxygen
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Author: Bérenger Dalle-Cort, 2017-2024

### v1.0:
- graph is now always abstract
- fd
- interpreter (build, run, debug etc) is disabled by default and is considered out of scope, but can be enabled via the Developer>Experimental menu,
- improved the Graph user interface to create_new graph more easily,
- implemented an optimized StateMachine to simplify code (it avoids an OOP version of it! Thanks to Rémi ;)),
Expand Down
Loading

0 comments on commit 380616a

Please sign in to comment.