mirror of
https://github.com/ruppert/fmini-1.git
synced 2026-12-06 21:04:26 +01:00
- core.h: one FMINI_VERSION (2.5.12) for both boards; FMINI_SMK_VERSION goes. The FM-1 build differs from v2.5.5 only in its version; the SMK-37 packages are byte for byte the v2.5.12 ones. - build.py, build_wasi.sh, make_fmini_installer.py and the workflow read FMINI_VERSION for both; editor FW_LATEST 2.5.12; the site shows one version. - CLAUDE.md: one version, one release with the four packages (tag vX.Y.Z). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
75 lines
2.6 KiB
YAML
75 lines
2.6 KiB
YAML
# SPDX-License-Identifier: GPL-3.0-only
|
|
# FMini-1: builds the firmware (FM-1 and the SMK-37's three models) and publishes the web installer
|
|
# (web/make_fmini_installer.py: one page with the four packages inside) on GitHub Pages, at https://ruppert.github.io/fmini-1/.
|
|
# Once in the repository's Settings > Pages: Source = GitHub Actions.
|
|
name: Installer
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths: ["firmware/**", "web/**", "tools/**", "assets/**", "build.sh", "docs/emu/**", "docs/fmini-ad*", ".github/workflows/installer.yml"]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
concurrency:
|
|
group: pages
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
|
|
- name: Python packages
|
|
run: pip install Pillow fonttools
|
|
|
|
- name: JieLi toolchain and AC79 SDK
|
|
run: |
|
|
tools/get_toolchain.sh
|
|
git clone --depth 1 --branch AC79NN_SDK_V1.2.1_2023-12-13 \
|
|
https://gitee.com/Jieli-Tech/fw-AC79_AIoT_SDK.git "$HOME/fw-AC79_AIoT_SDK"
|
|
|
|
- name: Build the firmware (the SMK-37's three models, then the FM-1)
|
|
run: |
|
|
BOARD=smk37 ./build.sh
|
|
BOARD=smk37 MODEL=elite ./build.sh
|
|
BOARD=smk37 MODEL=mke ./build.sh
|
|
./build.sh
|
|
|
|
- name: Make the installer page
|
|
run: |
|
|
VERSION=$(sed -n 's/^#define FMINI_VERSION "v\(.*\)"/\1/p' firmware/src/core.h)
|
|
mkdir -p _site
|
|
python3 web/make_fmini_installer.py "build/fmini-1-fm1-$VERSION.fwsc" _site/index.html "$VERSION"
|
|
cp "build/fmini-1-fm1-$VERSION.fwsc" "_site/fmini-1-$VERSION.fwsc"
|
|
cp "build/fmini-1-fm1-$VERSION.fwsc" build/fmini-1-smk37*-"$VERSION".fwsc _site/
|
|
cp docs/fmini-ad.mp4 docs/fmini-ad-poster.jpg _site/
|
|
mkdir -p _site/editor && cp web/editor_fmini.html _site/editor/index.html # the patch editor (web/test_editor_fmini.py)
|
|
cp -r docs/emu _site/emu # the browser emulators: FM-1 in docs/emu, SMK-37 in docs/emu/smk (web/emu/build_wasi.sh, SMK=1)
|
|
echo "FMini-1 v$VERSION (FM-1 and SMK-37)" >> "$GITHUB_STEP_SUMMARY"
|
|
|
|
- uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: _site
|
|
|
|
deploy:
|
|
needs: build
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
steps:
|
|
- id: deployment
|
|
uses: actions/deploy-pages@v4
|