Preserve the complete FIT candidate source alongside the probability correction

This commit is contained in:
JUAN JIANT committed 2026-11-04 15:36:07 -03:00
1 parent 4d23857b9f
commit e147a989f6
522 files changed
+172894

No files matched your search

+67
View File
@@ -0,0 +1,67 @@
# SPDX-License-Identifier: GPL-3.0-only
# (JIANT) the Android apps, built on every push that touches them, each APK as a workflow artifact:
# probe android/probe, the stems app's phase 0 (JIANT Probe)
# stems android/stems, the stems app (JIANT Stems): its JVM tests (:core: WAV, latency, mix, ZIP), the USB driver's
# test on the runner (usbstream.c against a pretend FM-1), the APK, then its pages on Robolectric
# On main the site's workflow (emulator.yml) also publishes both next to the installer (app/jiant-probe.apk,
# app/jiant-stems.apk).
name: android
on:
push:
paths: ["android/**", ".github/workflows/android.yml"]
workflow_dispatch:
permissions:
contents: read
jobs:
probe:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17"
- uses: gradle/actions/setup-gradle@v4
with:
gradle-version: "8.9"
- name: the APK
run: gradle -p android/probe assembleDebug --no-daemon
- uses: actions/upload-artifact@v4
with:
name: jiant-probe
path: android/probe/app/build/outputs/apk/debug/app-debug.apk
stems:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17"
- uses: gradle/actions/setup-gradle@v4
with:
gradle-version: "8.9"
- name: the JVM tests (WAV writing, the latency and its shift, the mix, the ZIP)
run: gradle -p android/stems -PcoreOnly :core:test --no-daemon
- name: the USB driver against a pretend FM-1
run: |
gcc -std=gnu11 -Wall -Wextra -Werror -O1 -fsanitize=address,undefined \
-I"$JAVA_HOME/include" -I"$JAVA_HOME/include/linux" \
android/stems/app/src/test/cpp/usbstream_test.c -o build-usbstream-test
./build-usbstream-test
- name: the APK
run: gradle -p android/stems :app:assembleDebug --no-daemon
- uses: actions/upload-artifact@v4
with:
name: jiant-stems
path: android/stems/app/build/outputs/apk/debug/app-debug.apk
- name: the pages on Robolectric (HOME, EDIT, EXPORT without a phone)
run: gradle -p android/stems :app:testDebugUnitTest --no-daemon
- uses: actions/upload-artifact@v4
if: always()
with:
name: jiant-stems-tests
path: |
android/stems/core/build/reports/tests/test/
android/stems/app/build/reports/tests/testDebugUnitTest/
if-no-files-found: ignore
+94
View File
@@ -0,0 +1,94 @@
# SPDX-License-Identifier: GPL-3.0-only
name: 0.9.9 CPU and RAM audit
on:
push:
branches: [codex/fm1-v099-cpu5]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: firmware-cpu5-audit
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-24.04
env:
AC79_SDK: /home/runner/fw-AC79_AIoT_SDK
JIELI_TOOLCHAIN: /home/runner/.jieli/toolchain
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: pip install Pillow==12.3.0 numpy==2.3.5 fonttools==4.61.1
- uses: actions/cache@v4
with:
path: |
~/.jieli
~/fw-AC79_AIoT_SDK/cpu/wl82/tools
key: jieli-ac79-v1.2.1
- name: JieLi toolchain and pinned SDK
shell: bash
run: |
set -euo pipefail
retry() { for d in 0 5 15 30; do sleep "$d"; "$@" && return 0; done; return 1; }
test -x "$JIELI_TOOLCHAIN/pi32v2/bin/clang" || retry sh tools/get_toolchain.sh "$HOME/.jieli"
T="$AC79_SDK/cpu/wl82/tools"
if [ ! -s "$T/uboot.boot" ] || [ ! -s "$T/cfg_tool.bin" ] || [ ! -s "$T/cfg/eq_cfg_hw.bin" ]; then
git clone --filter=blob:none --no-checkout https://gitee.com/Jieli-Tech/fw-AC79_AIoT_SDK.git "$AC79_SDK"
git -C "$AC79_SDK" sparse-checkout set --no-cone /cpu/wl82/tools/uboot.boot /cpu/wl82/tools/cfg_tool.bin /cpu/wl82/tools/cfg/eq_cfg_hw.bin
retry git -C "$AC79_SDK" checkout d179b4484759423312073f5fbb232501aa491047
fi
- name: Build the FM1 package and enforce target layout checks
run: python3 tools/build.py
- name: Target budgets and committed navigation maps
run: |
python3 tests/target_budget.py build/felucca.dis tests/target_budget.txt
python3 tools/gen_nav_map.py --check
- name: FM6 differential, audio, golden and concurrency checks
shell: bash
run: |
set -euo pipefail
mkdir -p build/host
for suite in fm6_env_compare fm6_test voice_test audio_test voice_fairness_test regress; do
cc -O2 -w -Ibuild/gen -Ifirmware/src "tests/$suite.c" -lm -o "build/host/$suite"
done
cc -O2 -w -Ibuild/gen -Ifirmware/src tests/chorus_sleep_test.c -lm -o build/host/chorus_sleep_test
python3 tests/chorus_sleep_test.py build/host/chorus_sleep_test
cc -O2 -w -Ibuild/gen -Ifirmware/src tests/empty_fx_test.c -lm -o build/host/empty_fx_test
python3 tests/empty_fx_test.py build/host/empty_fx_test
build/host/fm6_env_compare
build/host/fm6_test
build/host/voice_test
build/host/audio_test
build/host/voice_fairness_test 8
build/host/voice_fairness_test 12
build/host/regress tests/golden.txt tests/cpu_baseline.txt
cc -O2 -w -pthread -Ibuild/gen -Ifirmware/src tests/mc_thread_test.c -lm -o build/host/mc_thread_test
python3 tests/mc_thread_test.py build/host/mc_thread_test
for core in 0 1; do
cc -O2 -w -DT_C1=$core -DHALF_FRAMES=128 -Ibuild/gen -Ifirmware/src tests/uac_sched_test.c -lm -o build/host/uac_sched_test
build/host/uac_sched_test
done
cc -O2 -w -Ibuild/gen -Ifirmware/src tests/cpu_probe.c -lm -o build/host/cpu_probe
for scene in '0 0' '3 0' '5 0' '5 7' '7 0' '11 0' '12 0' '12 7' '14 0'; do
build/host/cpu_probe $scene 4
done
- name: Package provenance
shell: bash
run: |
sha256sum build/felucca.fwsc build/felucca.bin > build/SHA256SUMS
printf '%s\n' "$GITHUB_SHA" > build/SOURCE_COMMIT
- uses: actions/upload-artifact@v4
with:
name: fm1-v099-cpu5-audit
if-no-files-found: error
path: |
build/felucca.fwsc
build/felucca.bin
build/loader/ota.bin
build/SHA256SUMS
build/SOURCE_COMMIT
LICENSE
LICENSING.md
LICENSES/
+136
View File
@@ -0,0 +1,136 @@
# SPDX-License-Identifier: GPL-3.0-only
# The site on GitHub Pages: the front page (web/landing) at the root and the browser emulator (web/emu) under emu/: the firmware's sources compiled to WebAssembly, on every push to
# main. Needs Settings > Pages > Source: "GitHub Actions" once. The emulator needs only the generated headers; the
# installer (webapp/installer) and the editor (webapp/editor) need the package, built with JieLi's toolchain (downloaded).
# (JIANT 0.6.61) Two channels: the emulator and preview/webapp/installer are main as it is now (to check before anyone
# installs it); webapp/installer, the one people use, is the version approved in web/STABLE (a commit of main, set by
# a PR once the preview was checked in the emulator). No web/STABLE yet: main, as before.
name: emulator
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # (web/STABLE's commit: built for the public installer)
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: pip install Pillow numpy fonttools
- name: generated headers (fonts, icons, palettes, shapes, tables, samples)
run: python3 -c "import sys; sys.path.insert(0, 'tools'); import build; build.generate()"
- uses: mymindstorm/setup-emsdk@v14
with:
version: 6.0.11 # (the version the emulator is tested with)
- name: the emulator
run: sh web/emu/build.sh
# (JIANT) the installer and the web editor next to the emulator: the package needs JieLi's toolchain (downloaded)
# and three files of their AC79 SDK (a partial clone: only those blobs). If any of it fails the emulator still goes up
- name: JieLi toolchain and SDK files (cached)
uses: actions/cache@v4
with:
path: |
~/.jieli
~/fw-AC79_AIoT_SDK/cpu/wl82/tools
key: jieli-ac79-v1
- name: JieLi toolchain and SDK files
id: tc
continue-on-error: true
run: |
# gitee resets connections from the runners now and then: retries with backoff; the cache above keeps them
retry() { for d in 0 5 15 30 60; do sleep $d; "$@" && return 0; done; return 1; }
T=$HOME/fw-AC79_AIoT_SDK/cpu/wl82/tools
[ -e "$HOME/.jieli/toolchain" ] || retry sh tools/get_toolchain.sh "$HOME/.jieli"
if [ ! -s "$T/uboot.boot" ] || [ ! -s "$T/cfg_tool.bin" ] || [ ! -s "$T/cfg/eq_cfg_hw.bin" ]; then
rm -rf "$HOME/fw-AC79_AIoT_SDK"
retry git clone --filter=blob:none --no-checkout --depth 1 https://gitee.com/Jieli-Tech/fw-AC79_AIoT_SDK.git "$HOME/fw-AC79_AIoT_SDK"
cd "$HOME/fw-AC79_AIoT_SDK" && git sparse-checkout set --no-cone /cpu/wl82/tools/uboot.boot /cpu/wl82/tools/cfg_tool.bin \
/cpu/wl82/tools/cfg/eq_cfg_hw.bin && retry git checkout
fi
test -s "$T/uboot.boot" && test -s "$T/cfg_tool.bin" && test -s "$T/cfg/eq_cfg_hw.bin"
- name: the package, the installer and the editor
if: steps.tc.outcome == 'success'
continue-on-error: true
env:
AC79_SDK: /home/runner/fw-AC79_AIoT_SDK
JIELI_TOOLCHAIN: /home/runner/.jieli/toolchain
run: |
ver() { sed -n 's/^#define FELUCCA_VERSION "\([^"]*\)".*/\1/p' "$1/firmware/src/felucca.c" | head -1; }
# the preview: main as it is now, next to the emulator that runs it (preview/webapp/installer)
python3 tools/build.py
V=$(ver .)
python3 web/make_site.py build/felucca.fwsc "${V:-dev}-${GITHUB_SHA::7}-preview" build/site_preview
mkdir -p build/emu/preview
cp -r build/site_preview/webapp build/site_preview/firmware build/emu/preview/
# the public installer: the approved commit (web/STABLE), built from its own sources
S=$(tr -d ' \n' < web/STABLE 2>/dev/null || true)
PKG=build/felucca.fwsc; SV=${V:-dev}; SH=${GITHUB_SHA::7}
if [ -n "$S" ] && git cat-file -e "$S^{commit}" 2>/dev/null; then
git worktree add -f /tmp/stable "$S"
(cd /tmp/stable && python3 tools/build.py)
PKG=/tmp/stable/build/felucca.fwsc; SV=$(ver /tmp/stable); SH=${S::7}
fi
# (0.6.46) the versions the site offers now stay installable (the last few, web/fetch_prev.py)
python3 web/fetch_prev.py "https://${GITHUB_REPOSITORY_OWNER}.github.io/${GITHUB_REPOSITORY#*/}" build/prev || true
python3 web/make_site.py "$PKG" "${SV:-dev}-$SH" build/site build/prev
cp -r build/site/webapp build/site/firmware build/emu/
# (JIANT 0.7.9) the stems app's phase-0 probe (android/probe), next to the installer: app/jiant-probe.apk
- uses: actions/setup-java@v4
continue-on-error: true
with:
distribution: temurin
java-version: "17"
- uses: gradle/actions/setup-gradle@v4
continue-on-error: true
with:
gradle-version: "8.9"
- name: the Android probe
continue-on-error: true
run: |
gradle -p android/probe assembleDebug --no-daemon
mkdir -p build/emu/app
cp android/probe/app/build/outputs/apk/debug/app-debug.apk build/emu/app/jiant-probe.apk
# (JIANT Stems 1.0) the stems app (android/stems) beside it: app/jiant-stems.apk
- name: the Android stems app
continue-on-error: true
run: |
gradle -p android/stems :app:assembleDebug --no-daemon
mkdir -p build/emu/app
cp android/stems/app/build/outputs/apk/debug/app-debug.apk build/emu/app/jiant-stems.apk
# (JIANT 0.8.1) the site's front page (web/landing: what JIANT is, install / try / edit, what comes next) at the
# root, for people who just want to play; the emulator moves to emu/ (its links go up one level)
- name: the front page and the emulator under emu/
run: |
mkdir -p build/pages/emu
for f in index.html worklet.js stems.js fm1backup.js felucca.wasm fonts; do
if [ -e "build/emu/$f" ]; then mv "build/emu/$f" build/pages/emu/; fi
done
cp -r build/emu/. build/pages/
cp web/landing/index.html build/pages/index.html
cp web/landing/frecuencia.html build/pages/frecuencia.html
mkdir -p build/pages/docs && cp docs/cheatsheet-controls.pdf docs/cheatsheet-sound.pdf docs/cheatsheet-controls.png docs/cheatsheet-sound.png build/pages/docs/
# (0.9.2) the navigation map the front page shows (tools/gen_nav_map.py), English and Spanish
cp docs/navigation-map.png docs/navigation-map.svg docs/navigation-map.es.png docs/navigation-map.es.svg build/pages/docs/
- uses: actions/upload-pages-artifact@v3
with:
path: build/pages
deploy:
needs: build
runs-on: ubuntu-24.04
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
+76
View File
@@ -0,0 +1,76 @@
# SPDX-License-Identifier: GPL-3.0-only
name: firmware preview validation
on:
push:
branches: [codex/fm1-v099-preview]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: firmware-preview-validation
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-24.04
env:
AC79_SDK: /home/runner/fw-AC79_AIoT_SDK
JIELI_TOOLCHAIN: /home/runner/.jieli/toolchain
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: pip install Pillow==12.3.0 numpy==2.3.5 fonttools==4.61.1
- uses: actions/cache@v4
with:
path: |
~/.jieli
~/fw-AC79_AIoT_SDK/cpu/wl82/tools
key: jieli-ac79-v1.2.1
- name: JieLi toolchain and pinned SDK
shell: bash
run: |
set -euo pipefail
retry() { for d in 0 5 15 30; do sleep "$d"; "$@" && return 0; done; return 1; }
test -x "$JIELI_TOOLCHAIN/pi32v2/bin/clang" || retry sh tools/get_toolchain.sh "$HOME/.jieli"
T="$AC79_SDK/cpu/wl82/tools"
if [ ! -s "$T/uboot.boot" ] || [ ! -s "$T/cfg_tool.bin" ] || [ ! -s "$T/cfg/eq_cfg_hw.bin" ]; then
git clone --filter=blob:none --no-checkout https://gitee.com/Jieli-Tech/fw-AC79_AIoT_SDK.git "$AC79_SDK"
git -C "$AC79_SDK" sparse-checkout set --no-cone /cpu/wl82/tools/uboot.boot /cpu/wl82/tools/cfg_tool.bin /cpu/wl82/tools/cfg/eq_cfg_hw.bin
retry git -C "$AC79_SDK" checkout d179b4484759423312073f5fbb232501aa491047
fi
- name: Build the FM1 package and enforce target layout checks
run: python3 tools/build.py
- name: Target budgets and committed navigation maps
run: |
python3 tests/target_budget.py build/felucca.dis tests/target_budget.txt
python3 tools/gen_nav_map.py --check
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17"
- uses: gradle/actions/setup-gradle@v4
with:
gradle-version: "8.9"
- name: Resolve and test Stems JVM dependencies before the offline suite
run: gradle -p android/stems -PcoreOnly :core:test --no-daemon
- name: Host suites and target instruction budgets
run: sh tests/run_tests.sh
- name: Package provenance
shell: bash
run: |
sha256sum build/felucca.fwsc build/felucca.bin > build/SHA256SUMS
printf '%s\n' "$GITHUB_SHA" > build/SOURCE_COMMIT
- uses: actions/upload-artifact@v4
with:
name: fm1-v099-cpu1-preview
if-no-files-found: error
path: |
build/felucca.fwsc
build/felucca.bin
build/loader/ota.bin
build/SHA256SUMS
build/SOURCE_COMMIT
LICENSE
LICENSING.md
LICENSES/
+114
View File
@@ -0,0 +1,114 @@
name: ADD15 private candidate validation
on:
push:
branches: [codex/add15-private]
workflow_dispatch:
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-24.04
env:
AC79_SDK: /home/runner/fw-AC79_AIoT_SDK
JIELI_TOOLCHAIN: /home/runner/.jieli/toolchain
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: pip install Pillow==12.3.0 numpy==2.3.5 fonttools==4.61.1
- uses: actions/cache@v4
with:
path: |
~/.jieli
~/fw-AC79_AIoT_SDK/cpu/wl82/tools
key: jieli-ac79-v1.2.1
- name: Toolchain and SDK
run: |
retry() { for d in 0 5 15 30 60; do sleep $d; "$@" && return 0; done; return 1; }
T=$HOME/fw-AC79_AIoT_SDK/cpu/wl82/tools
[ -e "$HOME/.jieli/toolchain" ] || retry sh tools/get_toolchain.sh "$HOME/.jieli"
if [ ! -s "$T/uboot.boot" ] || [ ! -s "$T/cfg_tool.bin" ] || [ ! -s "$T/cfg/eq_cfg_hw.bin" ]; then
rm -rf "$HOME/fw-AC79_AIoT_SDK"
retry git clone --filter=blob:none --no-checkout https://gitee.com/Jieli-Tech/fw-AC79_AIoT_SDK.git "$HOME/fw-AC79_AIoT_SDK"
cd "$HOME/fw-AC79_AIoT_SDK"
git sparse-checkout set --no-cone /cpu/wl82/tools/uboot.boot /cpu/wl82/tools/cfg_tool.bin /cpu/wl82/tools/cfg/eq_cfg_hw.bin
retry git checkout d179b4484759423312073f5fbb232501aa491047
fi
- name: Whole sequence clipboard
run: |
python3 -c "import sys; sys.path.insert(0, 'tools'); import build; build.generate()"
mkdir -p build/rec
cc -O1 -w -fsanitize=bounds -fno-sanitize-recover=bounds -Ibuild/gen -Ifirmware/src -Itests tests/seq_clipboard_test.c -lm -o build/rec/seq_clipboard
build/rec/seq_clipboard | tee build/rec/seq-clipboard.log
- name: Components, acoustic storage and audio
run: |
for t in step_extensions acoustic_store drum_acoustic string_add project; do
cc -O1 -w -fsanitize=bounds -fno-sanitize-recover=bounds -Ibuild/gen -Ifirmware/src -Itests tests/${t}_test.c -lm -o build/rec/$t
build/rec/$t | tee build/rec/$t.log
done
- name: Target image, memory and DSP budgets
run: |
python3 tools/build.py
git worktree add --detach /tmp/rec-base "$(cat tests/REC_BASE)"
(cd /tmp/rec-base && python3 tools/build.py)
mkdir -p build/rec
BUDGET_UPDATE=1 python3 tests/target_budget.py /tmp/rec-base/build/felucca.dis /tmp/rec-base-budget.txt
# STRING restores the already implemented par12 feedback algorithm. Compare that
# engine to its donor; all other engines keep the exact ADD public baseline budget.
git worktree add --detach /tmp/string-base 527c7e4
(cd /tmp/string-base && python3 tools/build.py)
python3 - <<'PYCODE'
import runpy
from pathlib import Path
mod=runpy.run_path('tests/target_budget.py',run_name='target_cost_helpers')
value=mod['cost'](mod['functions']('/tmp/string-base/build/felucca.dis')['string_render'])['cost']
p=Path('/tmp/rec-base-budget.txt');lines=p.read_text().splitlines()
p.write_text('\n'.join(f'string_render {value}' if x.startswith('string_render ') else x for x in lines)+'\n')
print('STRING donor budget:',value,'(same +10% tolerance; other engines unchanged)')
PYCODE
python3 tests/target_budget.py build/felucca.dis /tmp/rec-base-budget.txt
- name: REC gesture and undo regression tests
run: |
mkdir -p build/rec
cc -O1 -w -Ibuild/gen -Ifirmware/src -Itests tests/rec_workflow_test.c -lm -o build/rec/rec_workflow
build/rec/rec_workflow | tee build/rec/controls.log
- name: Timing compared against exact base
run: |
cc -O1 -w -Ibuild/gen -I/tmp/rec-base/firmware/src -I/tmp/rec-base/tests /tmp/rec-base/tests/micro_test.c -lm -o build/rec/micro_base
cc -O1 -w -Ibuild/gen -Ifirmware/src -Itests tests/micro_test.c -lm -o build/rec/micro_new
set +e
build/rec/micro_base > build/rec/timing-base.log
rec_base_exit=$?
build/rec/micro_new > build/rec/timing-new.log
rec_new_exit=$?
set -e
test "$rec_base_exit" = "$rec_new_exit"
cmp build/rec/timing-base.log build/rec/timing-new.log
cat build/rec/timing-new.log
test "$rec_new_exit" -le 1
echo "Timing output and exit status match the original firmware exactly."
- uses: mymindstorm/setup-emsdk@v14
with:
version: 6.0.11
- name: Fresh and stored-project boot in WASM
run: |
sh web/emu/build.sh
node tests/add15_boot_test.mjs build/emu/felucca.wasm
- uses: actions/upload-artifact@v4
if: always()
with:
name: rec-firmware
path: |
build/felucca.fwsc
build/felucca.check.txt
build/felucca.map
build/layout.ld
build/felucca.o
build/felucca.dis
tools/audio_layout.txt
build/rec/*.log
+66
View File
@@ -0,0 +1,66 @@
name: Song save candidate
on:
push:
branches: [codex/song-save-as]
permissions:
contents: read
concurrency:
group: song-save-candidate
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- run: pip install Pillow==12.3.0 numpy==2.3.5 fonttools==4.61.1
- name: Generate headers
run: python3 -c "import sys;sys.path.insert(0,'tools');import build;build.generate()"
- name: Song persistence and UI
run: |
set -euo pipefail
mkdir -p build/song-check
cc -O1 -w -Wno-implicit-function-declaration -Ibuild/gen -Ifirmware/src tests/persistence_test.c -lm -o build/song-check/persistence
build/song-check/persistence | tee build/song-check/persistence.log
cc -O1 -w -Wno-implicit-function-declaration -DSONG_SAVE_ONLY -Ibuild/gen -Ifirmware/src tests/ui_test.c -lm -o build/song-check/ui
build/song-check/ui | tee build/song-check/ui.log
cc -O1 -w -Wno-implicit-function-declaration -Ibuild/gen -Ifirmware/src tests/project_test.c -lm -o build/song-check/project
build/song-check/project > build/song-check/project.log
python3 tests/uac_input_irq_test.py > build/song-check/usb-input.log
- name: JieLi toolchain cache
uses: actions/cache@v4
with:
path: |
~/.jieli
~/fw-AC79_AIoT_SDK/cpu/wl82/tools
key: jieli-ac79-v1.2.1
- name: Toolchain and SDK
run: |
retry() { for d in 0 5 15 30; do sleep $d; "$@" && return 0; done; return 1; }
T=$HOME/fw-AC79_AIoT_SDK/cpu/wl82/tools
[ -e "$HOME/.jieli/toolchain" ] || retry sh tools/get_toolchain.sh "$HOME/.jieli"
if [ ! -s "$T/uboot.boot" ] || [ ! -s "$T/cfg_tool.bin" ] || [ ! -s "$T/cfg/eq_cfg_hw.bin" ]; then
retry git clone --filter=blob:none --no-checkout https://gitee.com/Jieli-Tech/fw-AC79_AIoT_SDK.git "$HOME/fw-AC79_AIoT_SDK"
cd "$HOME/fw-AC79_AIoT_SDK"
git sparse-checkout set --no-cone /cpu/wl82/tools/uboot.boot /cpu/wl82/tools/cfg_tool.bin /cpu/wl82/tools/cfg/eq_cfg_hw.bin
retry git checkout d179b4484759423312073f5fbb232501aa491047
fi
test -s "$T/uboot.boot" && test -s "$T/cfg_tool.bin" && test -s "$T/cfg/eq_cfg_hw.bin"
- name: FM-1 package and target budgets
env:
AC79_SDK: /home/runner/fw-AC79_AIoT_SDK
JIELI_TOOLCHAIN: /home/runner/.jieli/toolchain
run: python3 tools/build.py > build/song-check/target.log 2>&1 || { cat build/song-check/target.log; exit 1; }
- uses: actions/upload-artifact@v4
if: always()
with:
name: song-save-candidate
path: |
build/song-check/*.log
build/felucca.fwsc
build/felucca.bin
build/bt.bin
build/layout.ld
build/felucca.map