WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

fix: ux

fix: ux #1442

Workflow file for this run

name: build
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
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.135.0"
- 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: 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: 2.2.0
- name: Checkout pico-extras
uses: actions/[email protected]
with:
repository: raspberrypi/pico-extras
path: pico-extras
submodules: true
ref: sdk-2.2.0
- 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: Build ectocore.uf2
run: |
make ectocore
cp ectocore.uf2 ectocore_${{ github.event.release.name }}.uf2
- name: Build ectocore_128.uf2
run: |
make ectocore_128
cp ectocore.uf2 ectocore_${{ github.event.release.name }}_128.uf2
- name: Build ectocore_256.uf2
run: |
make ectocore_256
cp ectocore.uf2 ectocore_${{ github.event.release.name }}_256.uf2
- name: Build ectocore no overclock
run: |
make ectocore_noclock
cp ectocore.uf2 ectocore_no_overclock_${{ github.event.release.name }}.uf2
- name: Build ectocore no overclock
run: |
make ectocore_noclock_128
cp ectocore.uf2 ectocore_no_overclock_${{ github.event.release.name }}_128.uf2
- name: Build ectocore no overclock
run: |
make ectocore_noclock_256
cp ectocore.uf2 ectocore_no_overclock_${{ github.event.release.name }}_256.uf2
- name: Build ectocore_beta_hardware.uf2
run: |
make ectocore_beta_hardware
cp ectocore_beta_hardware.uf2 ectocore_beta_hardware_${{ github.event.release.name }}.uf2
- name: Build zeptoboard.uf2
run: |
make zeptoboard
cp zeptoboard.uf2 zeptoboard_${{ github.event.release.name }}.uf2