.github/workflows/openwrt-feed-st.yml #8
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
on: workflow_dispatch | |
jobs: | |
build-all: | |
runs-on: ubuntu-22.04 | |
env: | |
openwrt_version: cffd3ad8d7 | |
strategy: | |
matrix: | |
devices: [ stm32mp157f-dk2, stm32mp135f-dk, stm32mp157f-dk2-demo, stm32mp135f-dk-demo ] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: openwrt/openwrt | |
ref: master | |
path: openwrt | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y python3-pyelftools python3-cryptography python3-setuptools python3-pil python3-dev | |
sudo apt install -y device-tree-compiler swig | |
- name: Add ST feed | |
run: echo src-git st https://github.com/bootlin/openwrt-feed-st.git >> openwrt/feeds.conf.default | |
- name: Update feeds | |
run: cd openwrt; ./scripts/feeds update -a | |
- name: Install stm32 target | |
run: cd openwrt; ./scripts/feeds install stm32 | |
- name: Install all other feeds | |
run: cd openwrt; ./scripts/feeds install -a -f | |
- name: Configure | |
run: | | |
printf "CONFIG_TARGET_stm32=y\\nCONFIG_TARGET_stm32_stm32mp1=y\\nCONFIG_TARGET_stm32_stm32mp1_DEVICE_${{ matrix.devices }}=y\\n" > openwrt/.config | |
make -C openwrt defconfig | |
- name: Build | |
id: build | |
run: make -j4 -C openwrt || make -C openwrt -j1 V=s | |
- name: 'Archive factory image' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: openwrt-stm32-stm32mp1-${{ matrix.devices }}-ext4-factory.img.gz | |
path: openwrt/bin/targets/stm32/stm32mp1/openwrt-stm32-stm32mp1-${{ matrix.devices }}-ext4-factory.img.gz | |
- name: 'Archive sysupgrade image' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: openwrt-stm32-stm32mp1-${{ matrix.devices }}-ext4-sysupgrade.img.gz | |
path: openwrt/bin/targets/stm32/stm32mp1/openwrt-stm32-stm32mp1-${{ matrix.devices }}-ext4-sysupgrade.img.gz |