Skip to content

Commit

Permalink
.github: workflows: Add ubuntu-latest-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
IlievIliya92 authored Oct 22, 2024
1 parent 1b428eb commit e00c9c8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ubuntu-latest-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CMake build for ubuntu-latest

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
BUILD_TYPE: Release

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup packages on Linux
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt-get update
sudo apt-get install build-essential git clang cmake gcc-arm-none-eabi build-essential gdb-multiarch libnewlib-arm-none-eabi
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain.cmake

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

0 comments on commit e00c9c8

Please sign in to comment.