Merge pull request #1 from shodan8192/config-cleanup #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
name: Milk-V Duo Buildroot CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Buildroot | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y sed make binutils build-essential \ | |
fakeroot libncurses5-dev libssl-dev ccache bison flex \ | |
patch gzip bzip2 perl \ | |
tar cpio unzip rsync file \ | |
bc wget python2 python3 \ | |
git \ | |
rsync \ | |
android-tools-mkbootimg | |
- name: Configure Buildroot | |
run: make milkv_duo_musl_riscv64_defconfig | |
- name: Build | |
run: make | |
- name: Generate Milk-V Duo SD Card Image by Buildroot | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sdcard.img | |
path: output/images/sdcard.img | |
- name: Upload the rootfs.tar.xz | |
uses: actions/upload-artifact@v3 | |
with: | |
name: rootfs.tar.xz | |
path: output/images/rootfs.tar.xz | |