mirror of
https://github.com/ruppert/fmini-1.git
synced 2026-12-05 12:24:36 +01:00
The project's first name, FMUG, is gone. Nothing about the sound or the stored data changes. - Files: eng_fmini.c, fmini_app.c, ui_fmini.c, editor_fmini.c, eng_fmini_filter.h, eng_fmini_presets.h, the tests, the tools (fmini_bank.py, fmini_filter.py, fmini_retune.py, fmini_levels.json, gen_fmini_presets.py) and web/make_fmini_installer.py. - Identifiers: fmug_ / FMUG_ / FELUCCA_FMUG_ONLY became fmini_ / FMINI_ / FELUCCA_FMINI_ONLY; the editor commands are FMINI_GET / FMINI_PUT / FMINI_PRESET (numbers 82-84 unchanged). The engine reports the name "FMINI" (was "FMUG") on the device and in the editor's engine list; the editor still accepts "FMUG" from firmware up to 1.7.0. - Short forms fmg_ / GR_FMG0..6 and FG_* are left as they are. - Tables: tests/golden.txt and tests/target_budget.txt only had their keys renamed. - Docs: CLAUDE.md and DEVELOPING.md say there is one branch (main) and record the rename; the test-suite notes now describe the second regress section (FELUCCA_CPU2=0: 41 FMINI patches differ from the golden, as on 1.7.0). - Site: docs/emu and docs/index.html rebuilt for v1.7.1; the splash pictures show the new version. Checked: the firmware's instructions are identical to 1.7.0 (only the addresses of string literals move); the 100 FMINI golden hashes are unchanged; every screen of the README shots is pixel-identical except the splash; the preset lab's metrics for the 100 patches are identical; the host suite fails in the same seven sections as before (fm4, ui_render, three regress, union_test, web pages) and nowhere else. Not tested on a real FM-1. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
70 lines
2.2 KiB
YAML
70 lines
2.2 KiB
YAML
# SPDX-License-Identifier: GPL-3.0-only
|
|
# FMini-1: builds the firmware and publishes the web installer (web/make_fmini_installer.py: one page with the package
|
|
# 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
|
|
run: ./build.sh
|
|
|
|
- name: Make the installer page
|
|
run: |
|
|
VERSION=$(sed -n 's/^#define FMINI_VERSION "v\(.*\)"/\1/p' firmware/src/fmini_app.c)
|
|
mkdir -p _site
|
|
python3 web/make_fmini_installer.py build/felucca.fwsc _site/index.html "$VERSION"
|
|
cp build/felucca.fwsc "_site/fmini-1-$VERSION.fwsc"
|
|
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 emulator (web/emu/build_wasi.sh builds docs/emu)
|
|
echo "FMini-1 v$VERSION" >> "$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
|