upd #58
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 fimware | |
on: | |
workflow_dispatch: | |
push: | |
branches: main | |
jobs: | |
Build_fimware: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Copy files and init repo | |
run: | | |
git clone https://github.com/micropython/micropython | |
cp -r RKD/* micropython/ports/rp2/ | |
cd micropython | |
git submodule update --init | |
cp ../rkd.h lib/pico-sdk/src/boards/include/boards | |
- name: Install build dep | |
run: sudo apt install -y gcc-arm-none-eabi | |
- name: Build mpy-cross | |
run: | | |
cd micropython | |
make -C mpy-cross -j$(nproc) | |
- name: Build firmware | |
run: | | |
cd micropython/ports/rp2 | |
make BOARD=RKD submodules -j$(nproc) | |
make BOARD=RKD clean -j$(nproc) | |
make BOARD=RKD -j$(nproc) | |
- name: Upload firmware to a GitHub release | |
uses: svenstaro/upload-release-action@2.3.0 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: micropython/ports/rp2/build-RKD/firmware.uf2 | |
asset_name: 'RKD_MPY-fimware-${{ runner.os }}_${{ runner.arch }}-${{ github.ref_name }}-${{ github.run_id }}.uf2' | |
body: '${{ github.ref_name }}-${{ github.run_id }}' | |
tag: build-${{ github.run_id }} |