-
Notifications
You must be signed in to change notification settings - Fork 111
59 lines (48 loc) · 1.48 KB
/
build-bootloader.yml
File metadata and controls
59 lines (48 loc) · 1.48 KB
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
49
50
51
52
53
54
55
56
57
58
59
name: Build Bootloader
on:
push:
branches: [main]
pull_request:
branches: [main]
paths:
- '.github/workflows/build-bootloader.yml'
- 'platform/**'
- 'third_party/**'
jobs:
build:
runs-on: ubuntu-24.04
container:
image: ghcr.io/pebble-dev/pebbleos-docker:v1
strategy:
matrix:
board: ["asterix"]
steps:
- name: Mark Github workspace as safe
run: git config --system --add safe.directory "${GITHUB_WORKSPACE}"
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Install Python dependencies
run: |
pip install -U pip
pip install -r requirements.txt
- name: Obtain platform name
id: get-platform
run: |
BOARD=${{ matrix.board }}
PLATFORM=${BOARD%%_*}
echo "platform=$PLATFORM" >> "$GITHUB_OUTPUT"
- name: Configure bootloader
working-directory: platform/${{ steps.get-platform.outputs.platform }}/boot
run: ./waf configure --board ${{ matrix.board }}
- name: Build bootloader
working-directory: platform/${{ steps.get-platform.outputs.platform }}/boot
run: ./waf build
- name: Store bootloader images
uses: actions/upload-artifact@v4
with:
name: bootloader-${{ matrix.board }}
path: |
platform/${{ steps.get-platform.outputs.platform }}/boot/build/tintin_boot.*