Skip to content

Added a step to find the xpack ARM GCC binary directory #48

Added a step to find the xpack ARM GCC binary directory

Added a step to find the xpack ARM GCC binary directory #48

Workflow file for this run

name: CMake
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# env:
# BUILD_TYPE: Debug
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure CMake for host
run: cmake -B ${{github.workspace}}/cmake-host-build-debug -DHOST=True -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build for host
run: cmake --build ${{github.workspace}}/cmake-host-build-debug -- -j 4
- name: Test on host
run: ctest --test-dir ${{github.workspace}}/cmake-host-build-debug
- name: Install gcc-arm-none-eabi
run: sudo apt install gcc-arm-none-eabi
- name: Configure CMake for target
run: cmake -B ${{github.workspace}}/cmake-target-build-debug -DCMAKE_TOOLCHAIN_FILE=../cmake/arm-none-eabi-gcc.cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build for target
run: cmake --build ${{github.workspace}}/cmake-target-build-debug -- -j 4