-
Notifications
You must be signed in to change notification settings - Fork 32
48 lines (46 loc) · 1.59 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 for all targets
on:
push:
branches:
- master
- devel
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/lnls-dig/openmmc-builder:latest
strategy:
matrix:
build-flags:
- { flags: -DBOARD=afc -DVERSION=3.1 -DBOARD_RTM=8sfp }
- { flags: -DBOARD=afc -DVERSION=4.0 -DBOARD_RTM=lamp}
- { flags: -DBOARD=afc -DVERSION=4.0 -DBOARD_RTM=lamp -DDEBUG_PROBE=jlink -DOPENOCD_TRANSPORT=swd }
- { flags: -DBOARD=afc -DVERSION=4.0 -DBOARD_RTM=lamp -DDEBUG_PROBE=cmsis-dap -DOPENOCD_TRANSPORT=swd }
- { flags: -DBOARD=afc -DVERSION=4.0 -DBOARD_RTM=lamp -DDEBUG_PROBE=digilent_jtag_hs3 -DOPENOCD_TRANSPORT=jtag }
- { flags: -DBOARD=afc -DVERSION=4.0 -DBOARD_RTM=lamp -DDEBUG_PROBE=xvc -DOPENOCD_TRANSPORT=jtag -DXVC_HOST=host -DXVC_PORT=0000}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Create build environment
run: mkdir build
- name: Configure CMake
working-directory: build
run: cmake .. -DCMAKE_BUILD_TYPE=RELWITHDEBINFO ${{matrix.build-flags.flags}}
- name: Build for all targets
working-directory: build
run: make
test_make_release:
runs-on: ubuntu-latest
container:
image: ghcr.io/lnls-dig/openmmc-builder:latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Create build environment
run: mkdir build
- name: Run make-release.sh
working-directory: scripts
run: ./make-release.sh