new tft board #676
Workflow file for this run
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: Build ARM | |
on: | |
pull_request: | |
push: | |
repository_dispatch: | |
release: | |
types: | |
- created | |
jobs: | |
# --------------------------------------- | |
# Build ARM family | |
# --------------------------------------- | |
ARM: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
board: | |
# Alphabetical order by family | |
# lpc55 | |
- 'double_m33_express' | |
- 'lpcxpresso55s28' | |
- 'lpcxpresso55s69' | |
# mimxrt10xx | |
- 'imxrt1010_evk' | |
- 'imxrt1015_evk' | |
- 'imxrt1020_evk' | |
- 'imxrt1024_evk' | |
- 'imxrt1040_evk' | |
- 'imxrt1050_evkb' | |
- 'imxrt1060_evk' | |
- 'metro_m7_1011' | |
- 'metro_m7_1011_sd' | |
- 'teensy40' | |
- 'teensy41' | |
# stm32f3 | |
- 'stm32f303disco' | |
# stm32f4 | |
- 'feather_stm32f405_express' | |
- 'stm32f411ve_discovery' | |
- 'stm32f411ce_blackpill' | |
- 'stm32f401_blackpill' | |
- 'sparkfun_stm32_thing_plus' | |
# stm32l4 | |
- 'swan_r5' | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Checkout common submodules in lib | |
run: git submodule update --init lib/tinyusb lib/uf2 | |
- name: Checkout linkermap | |
uses: actions/checkout@v3 | |
with: | |
repository: hathach/linkermap | |
path: linkermap | |
- name: Install ARM GCC | |
uses: carlosperate/arm-none-eabi-gcc-action@v1 | |
with: | |
release: '11.2-2022.02' | |
- name: Find Port | |
run: | | |
ENV_PORT=`echo ports/*/boards/${{ matrix.board }}` | |
ENV_PORT=`dirname $ENV_PORT` | |
ENV_PORT=`dirname $ENV_PORT` | |
echo ENV_PORT=$ENV_PORT >> $GITHUB_ENV | |
echo BIN_PATH=$ENV_PORT/_bin/${{ matrix.board }} >> $GITHUB_ENV | |
pip3 install linkermap/ | |
- name: Build | |
run: | | |
arm-none-eabi-gcc --version | |
make -C $ENV_PORT BOARD=${{ matrix.board }} get-deps | |
make -C $ENV_PORT BOARD=${{ matrix.board }} all self-update copy-artifact | |
for app in ${{ env.ENV_PORT }}/apps/*/; do if [ $app != 'apps/self_update/' ]; then make -C $app BOARD=${{ matrix.board }} all; fi done | |
- name: Linker Map | |
run: make -C $ENV_PORT BOARD=${{ matrix.board }} linkermap | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.board }} | |
path: ${{ env.BIN_PATH }} | |
- name: Prepare Release Asset | |
if: ${{ github.event_name == 'release' }} | |
run: | | |
for f in ${{ env.BIN_PATH }}/*; do mv $f ${f%.*}-${{ github.event.release.tag_name }}."${f#*.}"; done | |
zip -jr tinyuf2-${{ matrix.board }}-${{ github.event.release.tag_name }}.zip ${{ env.BIN_PATH }} | |
- name: Upload Release Asset | |
uses: softprops/action-gh-release@v1 | |
if: ${{ github.event_name == 'release' }} | |
with: | |
files: | | |
tinyuf2-${{ matrix.board }}-*.zip | |
${{ env.BIN_PATH }}/update-tinyuf2-${{ matrix.board }}-*.uf2 |