Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub actions asset build #1078

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

bruce-one
Copy link
Contributor

What this PR does / why we need it:

Adding GitHub actions build for creating the nexe asset, and also using it with the integration tests to ensure it works.

Such that people don't need to do --build all the time :-)

Work in progress :-)

Also, this showed that Node 18.19.0 seems to be broken, and have a fix for that (in theory), so will split that off at some point :-)

@bruce-one bruce-one force-pushed the github-actions-asset-build branch 4 times, most recently from b5bfeaa to 5e88966 Compare January 24, 2024 06:27
Copy link
Member

@jaredallard jaredallard left a comment

Choose a reason for hiding this comment

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

I'll review more of this later, but this is awesome! I was thinking about doing some of this myself, so I'm glad to see it being started!

@bruce-one bruce-one force-pushed the github-actions-asset-build branch 15 times, most recently from 9ce8850 to 361a8c5 Compare January 26, 2024 02:23
@bruce-one bruce-one changed the title WIP - GitHub actions asset build GitHub actions asset build Jan 26, 2024
name: integration-tests-musl-${{ matrix.os }}-${{ env.NODEJS_VERSION }}${{ env.EXECUTABLE_SUFFIX }}
path: integration-tests
if-no-files-found: error
- if: startsWith(github.ref, 'refs/tags/')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was just a guess at a plan for how to handle this :-) Similar for the defaulting to prerelease below too :-)

@bruce-one bruce-one marked this pull request as ready for review January 26, 2024 04:16
@bruce-one bruce-one force-pushed the github-actions-asset-build branch 4 times, most recently from 86fd91f to 3f311a9 Compare January 27, 2024 10:16
with:
fail_on_unmatched_files: true
prerelease: true
files: ${{ env.NEXE_ASSET }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: The name of this file probably doesn't match the existing pattern

@bruce-one
Copy link
Contributor Author

As a thought, would be keen to get this landed (if it looks okay, etc :-) ) before then following up with a PR to use the assets, rather than trying to get it all together in one PR :-) Partly to help keep the PRs (and effort) smaller and more manageable, but also to get the test coverage in asap :-) Knowing about Node.js versions failing is really nice :-)

.github/workflows/build-asset.yml Outdated Show resolved Hide resolved
@@ -1,73 +0,0 @@
schedules:
Copy link
Member

Choose a reason for hiding this comment

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

:galactic-relived:

Thanks for starting this! Originally actions didn't work because of the timeout so I had used azure pipelines. This will be so much better.

@bruce-one bruce-one force-pushed the github-actions-asset-build branch 3 times, most recently from 18ceea4 to a570eff Compare January 30, 2024 09:32
On macOS the temp path is a symlink and this was making the `/snapshot`
resolution (`this.root` vs `/snapshot` in the zipFs) not work properly.

This feels a bit like a workaround, but the path being different to the
executable was the culprit in the tests not working - and that's manual
code in the integration test script, and due to the custom entrypoint
for Mochs, so don't think it is a workaround :-)
This shouldn't make the test execution fail.

It seems to popup occasionally for some Windows removal racing, or similar.
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.

None yet

3 participants