Skip to content

chore: normalize build tooling + luacheck-clean FFI#3

Merged
Unisay merged 3 commits into
masterfrom
chore/align-overlay
Jun 14, 2026
Merged

chore: normalize build tooling + luacheck-clean FFI#3
Unisay merged 3 commits into
masterfrom
chore/align-overlay

Conversation

@Unisay

@Unisay Unisay commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Normalize this fork's build tooling to the ecosystem canon.

  • Replace the dead bower CI workflow with nix CI (nix develop -c ./scripts/build, ./scripts/test, luacheck).
  • Switch the flake to purescript-overlay (purs 0.15.16, spago-bin 0.21.0, lua51 toolchain, binary caches), refreshed via nix flake update.
  • luacheck runs --std lua51 --no-unused-args: matches the Lua 5.1 target (math.pow/atan2 are valid there) and the FFI convention of curried fallback arguments the native impl ignores.

Verified locally: build, test (where present), and luacheck all green.

Also drops the unused pcall result in checkThrows (local success = pcall(fn)) so luacheck is clean. Behaviour-identical.

Note: the PureScript test suite under test/ is not exercised by this CI. Reviving the upstream suites (with their Lua 5.1 fixes) is a separate upstream-sync task; this PR only normalizes build tooling.

@Unisay Unisay self-assigned this Jun 14, 2026
@Unisay Unisay requested a review from Copilot June 14, 2026 12:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repository’s build/CI tooling to use Nix flakes and aligns Lua linting/FFI conventions with a Lua 5.1 target, while also making a small luacheck-driven cleanup in the Lua FFI.

Changes:

  • Switch flake tooling from easy-purescript-nix to purescript-overlay, and add flake-local cache configuration.
  • Replace the existing GitHub Actions workflow with a Nix-based CI flow (nix develop -c ./scripts/build, optional ./scripts/test, and luacheck).
  • Clean up Lua FFI checkThrows to avoid an unused pcall result.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/Test/Assert.lua Removes the unused second return value from pcall to satisfy luacheck.
flake.nix Reworks the dev shell to use purescript-overlay and adds nixConfig substituters/keys.
flake.lock Updates/pins flake inputs to match the new overlay-based setup.
.github/workflows/ci.yml Replaces legacy JS/bower-based CI with Nix-based build/test/lint steps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/ci.yml Outdated
Comment on lines +24 to +25
- name: Test
run: if [ -f scripts/test ]; then nix develop -c ./scripts/test; fi
@Unisay Unisay merged commit 76e9059 into master Jun 14, 2026
1 check passed
@Unisay Unisay deleted the chore/align-overlay branch June 14, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants