-
Notifications
You must be signed in to change notification settings - Fork 134
82 lines (69 loc) · 2.28 KB
/
macos.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
name: Run tests on MacOS
on: [pull_request]
jobs:
macos_testing:
runs-on: macos-13
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.2'
- name: Setup environment - Brew tap
run: |
brew tap modm-ext/arm
brew tap osx-cross/avr
- name: Setup environment - Brew install
run: |
export HOMEBREW_NO_INSTALL_CLEANUP=1 # saves time
brew update
# brew unlink gcc
brew install doxygen boost gcc@12 avr-gcc@12 arm-gcc-bin@12 cmake || true
brew link --force avr-gcc@12
# brew upgrade boost gcc git || true
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Setup environment - Python pip
run: |
pip3 install --user modm scons
echo "/usr/local/bin" >> $GITHUB_PATH
echo "/Users/runner/Library/Python/3.11/bin" >> $GITHUB_PATH
- name: Dump environment
run: |
echo $PATH
env
locale -a
python --version || true
python3 --version || true
python3 -c "import os; print(os.cpu_count())"
which g++
g++ --version
which avr-g++
avr-g++ --version
which arm-none-eabi-g++
arm-none-eabi-g++ --version
which lbuild
lbuild --version
which scons
scons --version
- name: Check out repository
if: always()
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Hosted Unittests
if: always()
run: |
(cd test && make run-hosted-darwin)
- name: Hosted Examples
if: always()
run: |
(cd examples && ../tools/scripts/examples_compile.py linux)
- name: Compile STM32 Examples
if: always()
run: |
(cd examples && ../tools/scripts/examples_compile.py nucleo_f031k6 nucleo_f103rb nucleo_f303re nucleo_f411re nucleo_f746zg)
(cd examples && ../tools/scripts/examples_compile.py nucleo_g071rb nucleo_l031k6 nucleo_l152re nucleo_l476rg nucleo_g474re)
- name: Compile AVR Examples
if: always()
run: |
(cd examples && ../tools/scripts/examples_compile.py avr)