Update README.md #1373
This file contains hidden or 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 | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@v4.2.2 | |
| - name: Install sox | |
| run: | | |
| sudo apt update | |
| sudo apt install sox libsox-fmt-mp3 | |
| - name: Setup Hugo | |
| uses: peaceiris/actions-hugo@v3.0.0 | |
| with: | |
| hugo-version: "0.135.0" | |
| - name: Set up Python | |
| uses: actions/setup-python@v5.6.0 | |
| with: | |
| python-version: "3.11" | |
| - name: Set up Zig | |
| uses: goto-bus-stop/setup-zig@v2.2.1 | |
| with: | |
| version: "0.11.0" | |
| - name: Setup Go | |
| uses: actions/setup-go@v5.0.2 | |
| - 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/checkout@v4.2.2 | |
| with: | |
| repository: raspberrypi/pico-sdk | |
| path: pico-sdk | |
| submodules: true | |
| ref: 2.1.1 | |
| - name: Checkout pico-extras | |
| uses: actions/checkout@v4.2.2 | |
| with: | |
| repository: raspberrypi/pico-extras | |
| path: pico-extras | |
| submodules: true | |
| ref: sdk-2.1.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 core_macos_amd64 | |
| run: | | |
| make core_macos_amd64 | |
| cp core_macos_amd64 core_macos_amd64_${{ github.event.release.name }} | |
| - name: Build ectocore_macos_aarch64 | |
| run: | | |
| make ectocore_macos_aarch64 | |
| cp ectocore_macos_aarch64 ectocore_macos_aarch64_${{ github.event.release.name }} | |
| - name: Build core_macos_aarch64 | |
| run: | | |
| make core_macos_aarch64 | |
| cp core_macos_aarch64 core_macos_aarch64_${{ github.event.release.name }} | |
| - name: Build ectocore_macos_aarch64 | |
| run: | | |
| make ectocore_macos_amd64 | |
| cp ectocore_macos_amd64 ectocore_macos_amd64_${{ github.event.release.name }} | |
| - 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 | |
| - name: Build core_windows.exe | |
| run: | | |
| make core_windows.exe | |
| cp core_windows.exe core_windows_${{ github.event.release.name }}.exe | |
| - name: Build core_linux_amd64 | |
| run: | | |
| make core_linux_amd64 | |
| cp core_linux_amd64 core_linux_amd64_${{ github.event.release.name }} | |
| - name: Build ectocore_windows.exe | |
| run: | | |
| make ectocore_windows.exe | |
| cp ectocore_windows.exe ectocore_windows_${{ github.event.release.name }}.exe | |
| - name: Build ectocore_linux_amd64 | |
| run: | | |
| make ectocore_linux_amd64 | |
| cp ectocore_linux_amd64 ectocore_linux_amd64_${{ github.event.release.name }} |