Merge remote-tracking branch 'ChibiOS/stable_20.3.x' into stable_20.3… #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Firmware at GHA | |
on: [ push, pull_request ] | |
jobs: | |
build-firmware: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
# Build machines don't have arm-none-eabi gcc, so let's download it and put it on the path | |
- name: Download & Install GCC | |
if: ${{ env.skip != 'true' }} | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
run: | | |
tools/provide_gcc.sh | |
echo "::add-path::`pwd`/gcc-arm-none-eabi/bin" | |
- name: 1. Compile AT32 USB testhal | |
run: | | |
cd testhal/AT32/AT32F4xx/USB_CDC_IAD | |
make -j | |
- name: Attach USB_CDC_IAD | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: USB_CDC_IAD binaries | |
path: testhal/AT32/AT32F4xx/USB_CDC_IAD/build/ch*.* | |
- name: 2. Compile AT32F435 demo | |
run: | | |
cd demos/STM32/RT-AT32F435-ARTERY144 | |
make -j | |
- name: Attach RT-AT32F435-ARTERY144 | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: RT-AT32F435-ARTERY144 binaries | |
path: demos/STM32/RT-AT32F435-ARTERY144/build/ch*.* | |
- name: 3. Compile AT32 ADC testhal | |
run: | | |
cd testhal/AT32/AT32F4xx/ADC | |
make -j | |
- name: Attach ADC | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ADC binaries | |
path: testhal/AT32/AT32F4xx/ADC/build/ch*.* | |