forked from teamfinalmouse/xlat
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (39 loc) · 1.05 KB
/
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
43
44
45
46
47
48
name: Build XLAT firmware
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install arm-none-eabi-gcc toolchain
run: |
sudo apt-get update
sudo apt-get install -y gcc-arm-none-eabi
- name: Cache arm-none-eabi-gcc toolchain
uses: actions/cache@v4
with:
path: /usr/local/bin/arm-none-eabi-gcc
key: ${{ runner.os }}-arm-none-eabi-gcc-${{ hashFiles('**/build.yml') }}
restore-keys: |
${{ runner.os }}-arm-none-eabi-gcc-
- name: Create Build Directory
run: mkdir build
- name: CMake Generate
working-directory: build
run: |
cmake .. -DCMAKE_TOOLCHAIN_FILE=arm-none-eabi.cmake -DCMAKE_BUILD_TYPE=Release
- name: Build
working-directory: build
run: make -j8
- name: Upload Firmware
uses: actions/upload-artifact@v4
with:
name: firmware
path: build/xlat.elf