Skip to content

Conversation

@webdevred
Copy link
Owner

@webdevred webdevred commented Sep 30, 2025

New workflow scripts:

  • replace_newlines.sh: enforces CRLF on Windows builds.
  • test_release.sh: runs the executable on them and diffs against expected outputs depending on the release LABEL.

Workflow changes in build-and-release.yaml:

  • Separate dependency build step for better caching.
  • Added test executable step running test_release.sh.

Cabal:

  • Added a condition to enable CRLF line endings if using windows
  • cabal.project moved tests: True into the package stanza
  • Disabled dump-ast and transformation flags by default.
  • cabal.project.ci and cabal.project.ci enables dump-ast + transformation

Editor config:

Reindent .dir-locals.el files

@webdevred webdevred force-pushed the test-release-executable branch 8 times, most recently from ebf5351 to bd36506 Compare October 1, 2025 14:10
- Updated copy_exe_to_release.sh to select only jbeam-edit.exe instead of any .exe.
- Added new script test_release.sh to verify built executable against example .jbeam files.
- Added a step to run test_release.sh with appropriate environment variables.
@webdevred webdevred force-pushed the test-release-executable branch 3 times, most recently from 738518a to 7f3e14b Compare October 1, 2025 15:17
- Added ENABLE_WINDOWS_NEWLINES CPP flag in cabal/package.yaml to emit CRLF
  newlines on Windows.
- Introduced replaceNewline helper in Formatting.hs and updated formatNode
  to normalize trailing newlines.
- Adjusted comment formatting to remove unnecessary leading newlines.
- Updated tests in FormattingSpec to match new formatting behavior.
- Added replace_newlines.sh script to enforce CRLF endings in example files.
- Integrated newline normalization step into GitHub workflows on
  windows-latest runners.
- Updated test_release.sh to use diff -q for cleaner output and print paths
  of generated test files.
@webdevred webdevred force-pushed the test-release-executable branch from 7f3e14b to c05e3c6 Compare October 1, 2025 15:30
@webdevred webdevred merged commit fbeca33 into master Oct 1, 2025
13 checks passed
@webdevred webdevred deleted the test-release-executable branch October 1, 2025 15:43
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.

1 participant