-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 943 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build and Test Baremetal ARM
on:
push:
branches:
- main
- f/config_github_actions
pull_request:
branches:
- main
- f/config_github_actions
jobs:
build:
name: Build Baremetal ARM
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install ARM GCC
run: |
sudo apt-get update
sudo apt-get install -y gcc-arm-none-eabi binutils-arm-none-eabi
- name: Configure and build
run: |
cmake -S . -B cmake_build/ -G Ninja
cmake --build cmake_build/ --verbose
- name: Check for Binary
run: |
if [ ! -f build/baremetal_arm.bin ]; then
echo "Binary not generated!"
exit 1
fi
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
name: baremetal_arm
path: cmake_build/