Preparing Einstein to 2025 #242
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: REx compilation | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
NCT_PROJECTS: ${{ github.workspace }}/NCT_Projects | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get dependencies | |
run: sudo apt-get install -y gcc-arm-none-eabi cmake make | |
- name: Get NCT_Projects headers | |
uses: actions/checkout@v4 | |
with: | |
repository: ekoeppen/NCT_Projects | |
path: NCT_Projects | |
- name: Get tntk | |
uses: actions/checkout@v4 | |
with: | |
repository: ekoeppen/tntk | |
path: tntk | |
submodules: recursive | |
- name: Compile tntk | |
run: | | |
cmake -S tntk -B tntk/build | |
cmake --build tntk/build | |
sudo cmake --install tntk/build | |
- name: Get DCL | |
uses: actions/checkout@v4 | |
with: | |
repository: pguyot/DCL | |
path: DCL | |
- name: Compile DCL | |
run: | | |
cmake -S DCL -B DCL/build | |
cmake --build DCL/build | |
sudo cmake --install DCL/build | |
- name: Get Einstein sources | |
uses: actions/checkout@v4 | |
with: | |
path: Einstein | |
- name: Compile the REx | |
run: | | |
cmake -S Einstein/Drivers -B Einstein/Drivers/build -DCMAKE_TOOLCHAIN_FILE=cmake/newton-cross.cmake | |
cmake --build Einstein/Drivers/build | |
cmake --install Einstein/Drivers/build | |
- name: Store the REx | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Einstein.rex | |
path: Einstein/_Data_/Einstein.rex |