Skip to content

Split any YouTube song into stems

TypeScript

ci: run smoke tests on every release tag (windows + linux)

Daniel Ravinafa4c59fddafa
diff --git a/.github/workflows/linux-smoke.yml b/.github/workflows/linux-smoke.yml
new file mode 100644
index 0000000..cd48159
--- /dev/null
+++ b/.github/workflows/linux-smoke.yml
@@ -0,0 +1,40 @@
+name: linux-smoke
+
+# runs the app's self-test mode (STEMKIT_SMOKE=1) on a fresh ubuntu runner:
+# private-runtime bootstrap (the linux path prefers the downloaded runtime
+# over system pythons), ffmpeg mix, both engines on CPU, cuda fail-fast
+# paths. The GPU engine install is skipped (runners have no GPU; the
+# install mechanics are covered by windows-smoke). Called by release.yml on
+# tags, also runnable manually
+
+on:
+ workflow_dispatch:
+ workflow_call:
+
+jobs:
+ smoke:
+ runs-on: ubuntu-22.04
+ timeout-minutes: 40
+ steps:
+ - uses: actions/checkout@v4
+
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 20
+
+ - run: npm ci
+
+ - name: Fetch ffmpeg (linux)
+ run: bash scripts/fetch-ffmpeg.sh
+
+ - run: npx electron-vite build
+
+ - name: Smoke (bootstrap + both engines)
+ # electron wants a display even for the windowless self-test
+ run: |
+ sudo apt-get install -y xvfb
+ xvfb-run -a env STEMKIT_SMOKE=1 STEMKIT_SMOKE_SKIP_GPU=1 npx electron .
+
+ - name: Print smoke log
+ if: always()
+ run: tail -50 /tmp/stemkit-smoke.log || true
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 3a8c177..f22acab 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -120,3 +120,19 @@ jobs:
release/*.AppImage
release/*.deb
if-no-files-found: error
+
+ # regression gate: run the app's self-test (fresh install/bootstrap, both
+ # engines on CPU, GPU plumbing) on clean runners before a release is
+ # trusted. The electron-builder step above only creates a DRAFT — a red
+ # run here means do not publish it
+ smoke-windows:
+ needs: build
+ if: startsWith(github.ref, 'refs/tags/v')
+ uses: ./.github/workflows/windows-smoke.yml
+ secrets: inherit
+
+ smoke-linux:
+ needs: build
+ if: startsWith(github.ref, 'refs/tags/v')
+ uses: ./.github/workflows/linux-smoke.yml
+ secrets: inherit