action flub fix #21
Workflow file for this run
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: UF2 Generate and Release | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- '*' | |
jobs: | |
create-release: | |
# ubuntu | |
env: | |
RPOS_UF2FILE: RPI_PICO-20240222-v1.22.2.uf2 | |
TT_RUNS_SUPPORTED: "tt03p5 tt04" | |
runs-on: ubuntu-latest | |
steps: | |
# need the repo checked out | |
- name: checkout repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
path: sdk | |
# get the RPI UF2 | |
- name: get the os | |
run: wget -O /tmp/rp2-pico.uf2 "https://micropython.org/resources/firmware/$RPOS_UF2FILE" | |
# get python setup | |
- name: build the merged UF2 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
# build it | |
- name: get the os | |
run: | | |
mkdir $GITHUB_WORKSPACE/sdk/src/shuttles | |
for chip in $TT_RUNS_SUPPORTED; do wget -O $GITHUB_WORKSPACE/sdk/src/shuttles/$chip.json "https://index.tinytapeout.com/$chip.json?fields=repo,address,commit,clock_hz"; done | |
# build it | |
- run: | | |
pip install uf2utils | |
touch $GITHUB_WORKSPACE/sdk/src/release_${{ github.ref_name }} | |
python -m uf2utils.examples.custom_pico --fs_root $GITHUB_WORKSPACE/sdk/src --upython /tmp/rp2-pico.uf2 --out /tmp/tt-demo-rp2040-${{ github.ref_name }}.uf2 | |
- name: Upload Release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "/tmp/tt-demo-rp2040-${{ github.ref_name }}.uf2" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
generateReleaseNotes: true | |