Skip to content

release

release #151

Workflow file for this run

name: release
on:
release:
types: [created]
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout project
uses: actions/[email protected]
- name: Install sox
run: |
sudo apt update
sudo apt install sox libsox-fmt-mp3
- name: Setup Hugo
uses: peaceiris/[email protected]
with:
hugo-version: "0.133.1"
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.11"
- name: Set up Zig
uses: goto-bus-stop/[email protected]
with:
version: "0.11.0"
- name: Setup Go
uses: actions/[email protected]
- name: Install Pico SDK dependencies
run: |
sudo apt update
sudo apt install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential gcc wget tar
- name: ARM GCC version
run: |
arm-none-eabi-gcc --version
arm-none-eabi-g++ --version
- name: Create and activate a Python virtual environment
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv .venv
echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV
echo "$PWD/.venv/bin" >> $GITHUB_PATH
- name: Install Python dependencies
run: uv pip install -r requirements.txt
- run: uv pip freeze
- name: Checkout pico-sdk
uses: actions/[email protected]
with:
repository: raspberrypi/pico-sdk
path: pico-sdk
submodules: true
ref: 1.5.1
- name: Patch tinyusb
run: |
sed -i 's/OSAL_TIMEOUT_WAIT_FOREVER/OSAL_TIMEOUT_NORMAL/g' $GITHUB_WORKSPACE/pico-sdk/lib/tinyusb/src/tusb.c
cat $GITHUB_WORKSPACE/pico-sdk/lib/tinyusb/src/tusb.c | grep osal_mutex
- name: Set PICO_SDK_PATH
run: echo "PICO_SDK_PATH=$GITHUB_WORKSPACE/pico-sdk" >> $GITHUB_ENV
- name: Build zeptocore.uf2
run: |
make zeptocore
cp zeptocore.uf2 zeptocore_${{ github.event.release.name }}.uf2
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
zeptocore_${{ github.event.release.name }}.uf2