Skip to content

Commit

Permalink
[ci] Compile AVR examples on Windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
salkinium committed Jan 13, 2024
1 parent 1f210c1 commit 45d24d2
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/windows_armcortexm.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run ARM Cortex-M tests on Windows
name: Run ARM Cortex-M and AVR tests on Windows

on: [pull_request]

Expand All @@ -22,6 +22,7 @@ jobs:
- name: Install Python packages
run: |
pip install --user modm scons future
lbuild --version
- name: Download ARM Toolchain
shell: powershell
Expand All @@ -36,11 +37,28 @@ jobs:
dir C:\arm-gnu-toolchain-12.2.rel1-mingw-w64-i686-arm-none-eabi
echo "C:\arm-gnu-toolchain-12.2.rel1-mingw-w64-i686-arm-none-eabi\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
rm gcc-arm-none-eabi-win64.zip
arm-none-eabi-g++ --version
- name: Show lbuild and arm-none-eabi-gcc Version Information
- name: Download AVR Toolchain
shell: powershell
run: |
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -OutFile gcc-avr-win64.zip https://github.com/ZakKemble/avr-gcc-build/releases/download/v13.2.0-1/avr-gcc-13.2.0-x64-windows.zip
- name: Install AVR Toolchain
shell: powershell
run: |
Expand-Archive -Path gcc-avr-win64.zip -DestinationPath C:\ -Force
dir C:\avr-gcc-13.2.0-x64-windows
echo "C:\avr-gcc-13.2.0-x64-windows\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
rm gcc-avr-win64.zip
avr-g++ --version
- name: Show lbuild, arm-none-eabi-gcc, and avr-gcc Version Information
run: |
lbuild --version
arm-none-eabi-g++ --version
avr-g++ --version
python -c "import os; print(os.cpu_count())"
- name: Check out repository
Expand All @@ -58,7 +76,7 @@ jobs:
(cd examples && python ../tools/scripts/examples_compile.py nucleo_f031k6 nucleo_f103rb nucleo_f303re nucleo_f411re nucleo_f746zg)
(cd examples && python ../tools/scripts/examples_compile.py nucleo_g071rb nucleo_l031k6 nucleo_l152re nucleo_l476rg nucleo_g474re)
# - name: Compile AVR Examples
# shell: bash
# run: |
# (cd examples && python ../tools/scripts/examples_compile.py avr)
- name: Compile AVR Examples
shell: bash
run: |
(cd examples && ../tools/scripts/examples_compile.py avr arduino_nano arduino_uno srxe)

0 comments on commit 45d24d2

Please sign in to comment.