Skip to content

release

release #149

Workflow file for this run

name: release
on:
release:
types: [created]
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
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 -y cmake libnewlib-arm-none-eabi build-essential wget tar
- name: Install Arm GNU Toolchain (arm-none-eabi-gcc)
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: '13.2.Rel1' # <-- The compiler release to use
- name: ARM GCC version
run: arm-none-eabi-gcc --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