Skip to content

Commit

Permalink
Run workflow for multiple configs and upload sdcard.img
Browse files Browse the repository at this point in the history
  • Loading branch information
nisargjhaveri authored Aug 6, 2023
1 parent 75213b6 commit 067b1a0
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ on:

jobs:
build:
strategy:
matrix:
defconfig:
- raspberrypi0w
- raspberrypizero2w
- raspberrypi4

runs-on: ubuntu-latest

steps:
Expand All @@ -13,9 +20,18 @@ jobs:
submodules: recursive

- name: Setup config
run: make BR2_EXTERNAL=../aa_wireless_dongle/ O=output/rpizero2w raspberrypizero2w_defconfig
run: make BR2_EXTERNAL=../aa_wireless_dongle/ ${{ matrix.defconfig }}_defconfig
working-directory: ./buildroot

- name: Build
run: make
working-directory: ./buildroot/output/rpizero2w
working-directory: ./buildroot

- name: Compress sdcard.img
run: xz -c sdcard.img > ${{ matrix.defconfig }}-sdcard.img.xz
working-directory: ./buildroot/output/images

- uses: actions/upload-artifact@v3
with:
name: AAWirelessDongle-${{ matrix.defconfig }}
path: ./buildroot/output/images/${{ matrix.defconfig }}-sdcard.img.xz

0 comments on commit 067b1a0

Please sign in to comment.