-
-
Notifications
You must be signed in to change notification settings - Fork 63
88 lines (71 loc) · 3.23 KB
/
cmake-qemu-arm.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: CMake QEMU ARM
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-20.04
env:
CC: arm-linux-gnueabihf-gcc
CXX: arm-linux-gnueabihf-g++
AR: arm-linux-gnueabihf-ar
LD: arm-linux-gnueabihf-ld
LDFLAGS: -L/usr/arm-linux-gnueabihf/lib
CMAKE_CROSSCOMPILING: True
QEMU_LD_PREFIX: /usr/arm-linux-gnueabihf
CMAKE_CROSSCOMPILING_EMULATOR: qemu-arm
strategy:
matrix:
BUILD_CONFIG: [ Release, Debug ]
steps:
- uses: actions/checkout@v4
# install dependencies
- name: Install ARM GCC on ubuntu
run: |
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf qemu-user
# main test
- name: Configure Test
run: cmake -B ./build -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_CONFIG }}
working-directory: ${{ github.workspace }}
- name: Build Text
run: cmake --build ./build --config ${{ matrix.BUILD_CONFIG }}
working-directory: ${{ github.workspace }}
# examples/advanced_event_handling
- name: Configure 'examples/advanced_event_handling'
run: cmake -B ./build -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_CONFIG }}
working-directory: ${{ github.workspace }}/examples/advanced_event_handling
- name: Build 'examples/advanced_event_handling'
run: cmake --build ./build --config ${{ matrix.BUILD_CONFIG }}
working-directory: ${{ github.workspace }}/examples/advanced_event_handling
# examples/basic_audio_player
- name: Configure 'examples/basic_audio_player'
run: cmake -B ./build -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_CONFIG }}
working-directory: ${{ github.workspace }}/examples/basic_audio_player
- name: Build 'examples/basic_audio_player'
run: cmake --build ./build --config ${{ matrix.BUILD_CONFIG }}
working-directory: ${{ github.workspace }}/examples/basic_audio_player
# examples/basic_traffic_light
- name: Configure 'examples/basic_traffic_light'
run: cmake -B ./build -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_CONFIG }}
working-directory: ${{ github.workspace }}/examples/basic_traffic_light
- name: Build 'examples/basic_traffic_light'
run: cmake --build ./build --config ${{ matrix.BUILD_CONFIG }}
working-directory: ${{ github.workspace }}/examples/basic_traffic_light
# examples/calculator - disabled, uses <conio.h> and _getch()
# - name: Configure 'examples/calculator'
# run: cmake -B ./build -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_CONFIG }}
# working-directory: ${{ github.workspace }}/examples/calculator
#
# - name: Build 'examples/calculator'
# run: cmake --build ./build --config ${{ matrix.BUILD_CONFIG }}
# working-directory: ${{ github.workspace }}/examples/calculator
# examples/debug_logger_interface
- name: Configure 'examples/debug_logger_interface'
run: cmake -B ./build -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_CONFIG }}
working-directory: ${{ github.workspace }}/examples/debug_logger_interface
- name: Build 'examples/debug_logger_interface'
run: cmake --build ./build --config ${{ matrix.BUILD_CONFIG }}
working-directory: ${{ github.workspace }}/examples/debug_logger_interface