Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Fail build fast in windows#835

Merged
davesmith00000 merged 4 commits intoPurpleKingdomGames:mainfrom
mtrigueira:windows-build
Feb 9, 2025
Merged

Fail build fast in windows#835
davesmith00000 merged 4 commits intoPurpleKingdomGames:mainfrom
mtrigueira:windows-build

Conversation

@mtrigueira
Copy link
Copy Markdown
Contributor

On windows the build does not abort, and merrily runs to completion.

This changes the main build script to fail fast, the indigo-plugin and mill-indigo build scripts too. These were giving false negatives.

Some boilerplate code put into local functions.

The "meat" of the powershell and bash scripts now look much more alike.

This is a practical dependency for #833

@mtrigueira mtrigueira mentioned this pull request Feb 5, 2025
Copy link
Copy Markdown
Member

@davesmith00000 davesmith00000 left a comment

Choose a reason for hiding this comment

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

Looks good (my powershell knowledge is approaching zero, but it looks plausible!), just one small amend if you could.

Comment thread indigo-plugin/build.ps1 Outdated
mill indigo-plugin[2.12].checkFormat
mill indigo-plugin[2.13].checkFormat
mill indigo-plugin[2.12].publishLocal
mill indigo-plugin[2.13].publishLocal No newline at end of file
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I nearly left a different comment here, because mill is a confusing choice of function name. Can you go for something like runMill (or something... get creative). I probably won't look at this script again for months and I don't want to make the same mistake twice. 😄

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've tidied up the function too, and called it "RunMill". I've also moved the "-i" back into the calls because although I was aiming for a nice proxy function, so my brain did not have to deal with the boilerplate. Slurping up the parameter also made me do a double take on second reading. Hopefully this does the trick.

Copy link
Copy Markdown
Member

@davesmith00000 davesmith00000 left a comment

Choose a reason for hiding this comment

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

Thank you!

@davesmith00000 davesmith00000 merged commit e200bf8 into PurpleKingdomGames:main Feb 9, 2025
@mtrigueira mtrigueira deleted the windows-build branch February 10, 2025 08:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants