Skip to content

cleanup: Remove pyodide specific code #71

cleanup: Remove pyodide specific code

cleanup: Remove pyodide specific code #71

Workflow file for this run

name: Build and Release
on:
push:
tags:
- '*'
branches:
- main
- feat/pyinstaller
- task/bundling
env:
MICROPYTHON_PICO_UF2_URL: https://micropython.org/resources/firmware/RPI_PICO-20241129-v1.24.1.uf2
permissions:
contents: write
jobs:
build_rfunit:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.14'
- name: Download micropython binary
run: |
curl -L -o micropython_pico.uf2 ${{ env.MICROPYTHON_PICO_UF2_URL }}
- name: Install the latest version of uv
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
- name: Build executable
run: |
uv run pyinstaller pyinstaller.spec
- name: Upload artifacts
uses: actions/upload-artifact@v6
with:
name: rfunit-tools-${{ matrix.os }}
path: |
dist/
LICENSE
CREDITS
README.md
DIY-Special-edition.md
pi_pico_diagram_phat.png
pi_pico_diagram_one_s.png
rf_unit_swd.jpg
micropython_pico.uf2
release:
runs-on: ubuntu-latest
needs: build_rfunit
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download artifacts
uses: actions/download-artifact@v6
- name: Create release zip
run: |
for DIR in *; do 7z a ${DIR}-${{ github.ref_name }}.zip ${DIR}; done
- name: Create release
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
generate_notes: false
files: |
*.zip