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: Auto Build DSP7 system. | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-all: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
config: [dongshanpiseven_core_defconfig,dongshanpiseven_standard-aiot_defconfig] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: buildroot-external-dongshanpiseven | |
- uses: actions/checkout@v4 | |
with: | |
repository: DongshanPI/Buildroot-ST | |
ref: master | |
path: buildroot | |
- name: Install buildroot dependencies | |
run: sudo apt install debianutils sed make binutils build-essential gcc g++ bash patch gzip bzip2 perl tar cpio unzip rsync file bc git mtools | |
- name: Configure Buildroot | |
run: make -C buildroot BR2_EXTERNAL=../buildroot-external-dongshanpiseven O=../output ${{ matrix.config }} | |
- name: Build Buildroot | |
run: make -C buildroot BR2_EXTERNAL=../buildroot-external-dongshanpiseven O=../output | |
- name: Build toolchain | |
run: make -C buildroot BR2_EXTERNAL=../buildroot-external-dongshanpiseven O=../output sdk | |
- name: Compress sdcard.img | |
run: gzip -9 output/images/sdcard.img | |
- run: tar -czvf ${{ matrix.config }}.tar.gz output/images/* | |
- name: Store images | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.config }} | |
path: ${{ matrix.config }}.tar.gz | |
- run: ls -la | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
${{ matrix.config }}.tar.gz | |
- run: ls -la | |