diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-22 11:46:32 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-22 11:46:32 +0000 |
| commit | 4494b54d0e4b0b1564a7c66391216b98c8523b0e (patch) | |
| tree | 6ed15f551e826b8623581292c4cdab2f05fbf9b9 /.github | |
| parent | 8d82bcba8f24a1ee30d4dee8a2ba19d2b58e7f4f (diff) | |
build(bundle): port the package smoke test to Perl
Replace bundle/scripts/smoke-package.py with smoke-package.pl, which uses
only core modules like the other build and test scripts. Windows runs it
with native Strawberry Perl.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/nightly-build.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index f625a78..3f0291a 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -126,7 +126,7 @@ jobs: npm run prepare:compiler npm run tauri -- build --no-bundle cargo test --release --locked --manifest-path src-tauri/Cargo.toml - python3 scripts/smoke-package.py src-tauri/target/release + perl scripts/smoke-package.pl src-tauri/target/release - name: Upload the compiler package uses: actions/upload-artifact@v7.0.2 @@ -295,7 +295,7 @@ jobs: smoke_dir="$RUNNER_TEMP/cpsc-bundle-smoke" mkdir -p "$smoke_dir" tar -xJf "${packages[0]}" -C "$smoke_dir" - python3 bundle/scripts/smoke-package.py "$smoke_dir/CPSC Bundle.app" + perl bundle/scripts/smoke-package.pl "$smoke_dir/CPSC Bundle.app" test "$(lipo -archs "$smoke_dir/CPSC Bundle.app/Contents/MacOS/cpsc-bundle")" = arm64 test "$(lipo -archs "$smoke_dir/CPSC Bundle.app/Contents/MacOS/cpsc")" = arm64 @@ -506,7 +506,7 @@ jobs: run: | $packages = @(Get-ChildItem -Path bundle/artifacts/cpsc-bundle-*-Windows-x86_64.exe -File) if ($packages.Count -ne 1) { throw 'Expected one portable Windows executable' } - python bundle/scripts/smoke-package.py $packages[0].FullName + & C:\Strawberry\perl\bin\perl.exe bundle/scripts/smoke-package.pl $packages[0].FullName if ($LASTEXITCODE -ne 0) { throw 'Desktop package smoke test failed' } - name: Upload the Windows desktop package |
