Skip to content

Build and Test for ARMHF #2

Build and Test for ARMHF

Build and Test for ARMHF #2

Workflow file for this run

name: Build
on:
push:
branches:
- master
- dev
- 'release/*'
pull_request:
branches:
- '**'
workflow_dispatch:
env:
BUILD_TYPE: Debug
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up ARM32 Environment
run: |
sudo apt-get update
sudo apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf cmake
- name: Create Build Directory
run: cmake -E make_directory ${{github.workspace}}/build
- name: Configure CMake for ARM32
working-directory: ${{github.workspace}}/build
run: cmake .. -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/toolchain-arm32.cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . --config ${{env.BUILD_TYPE}}
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: build-artifact-arm32
path: ${{github.workspace}}/build