Skip to content

Commit 834adfd

Browse files
committed
[ci] macOS: Enable AVR testing again with GCC 10
1 parent 97a5e64 commit 834adfd

File tree

1 file changed

+25
-24
lines changed

1 file changed

+25
-24
lines changed

.github/workflows/macos.yml

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,45 +10,46 @@ jobs:
1010
- name: Setup environment - Brew tap
1111
run: |
1212
brew tap modm-ext/arm
13-
# brew tap modm-ext/avr
13+
brew tap modm-ext/avr
1414
1515
- name: Setup environment - Brew install
1616
run: |
17-
brew install git doxygen boost gcc arm-gcc-bin cmake || true
18-
brew upgrade boost gcc git || true
19-
# brew install git doxygen boost gcc avr-gcc arm-gcc-bin cmake || true
20-
# brew upgrade boost gcc git || true
17+
export HOMEBREW_NO_INSTALL_CLEANUP=1 # saves time
18+
brew update
19+
brew install doxygen boost gcc avr-gcc@10 arm-gcc-bin cmake || true
20+
brew link --force avr-gcc@10
21+
# brew upgrade boost gcc git || true
2122
2223
- name: Setup environment - Python pip
2324
run: |
2425
pip3 install --user modm scons
2526
echo "/usr/local/bin" >> $GITHUB_PATH
2627
echo "/Users/runner/Library/Python/3.9/bin" >> $GITHUB_PATH
27-
echo $PATH
2828
2929
- name: Dump environment
3030
run: |
31-
env
32-
locale -a
33-
python --version || true
34-
python3 --version || true
35-
which scons
36-
scons --version
37-
which g++
38-
g++ --version
39-
which arm-none-eabi-g++
40-
arm-none-eabi-g++ --version
41-
which lbuild
42-
lbuild --version
43-
# which avr-g++
44-
# avr-g++ --version
31+
echo $PATH
32+
env
33+
locale -a
34+
python --version || true
35+
python3 --version || true
36+
which scons
37+
scons --version
38+
which g++
39+
g++ --version
40+
which arm-none-eabi-g++
41+
arm-none-eabi-g++ --version
42+
which lbuild
43+
lbuild --version
44+
which avr-g++
45+
avr-g++ --version
4546
4647
- name: Check out repository
4748
uses: actions/checkout@v2
4849

4950
- name: Git Submodules
5051
run: |
51-
git submodule update --init
52+
git submodule update --init --jobs 8
5253
5354
- name: Hosted Unittests
5455
run: |
@@ -63,6 +64,6 @@ jobs:
6364
(cd examples && ../tools/scripts/examples_compile.py nucleo_f031k6 nucleo_f103rb nucleo_f303re nucleo_f411re nucleo_f746zg)
6465
(cd examples && ../tools/scripts/examples_compile.py nucleo_g071rb nucleo_l152re nucleo_l476rg nucleo_g474re)
6566
66-
#- name: Compile AVR Examples
67-
# run: |
68-
# (cd examples && ../tools/scripts/examples_compile.py avr)
67+
- name: Compile AVR Examples
68+
run: |
69+
(cd examples && ../tools/scripts/examples_compile.py avr)

0 commit comments

Comments
 (0)