Skip to content

Commit

Permalink
Create build-v2.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aatif24 authored Dec 24, 2024
1 parent ad9cf07 commit fbd7eb7
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build-v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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

0 comments on commit fbd7eb7

Please sign in to comment.