Skip to content

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 :-)

@bruce-one bruce-one force-pushed the github-actions-asset-build branch from 3f311a9 to ab96768 Compare January 27, 2024 10:26
@@ -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
@bruce-one bruce-one force-pushed the github-actions-asset-build branch from a570eff to daff50d Compare April 29, 2024 18:19
@bruce-one bruce-one force-pushed the github-actions-asset-build branch from daff50d to 8a2c977 Compare June 17, 2024 06:05
@Armanio
Copy link

Armanio commented Jun 26, 2024

Hi @bruce-one! Fantastic job! Thx!

@bruce-one bruce-one force-pushed the github-actions-asset-build branch from 8a2c977 to cae0b70 Compare July 5, 2024 01:55
bruce-one added 2 commits July 5, 2024 12:36
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. As that's manual
code in the integration test script, and due to the custom entrypoint
for Mocha, that makes this not a workaround :-)
This shouldn't make the test execution fail.

It seems to popup occasionally for some Windows removal racing, or similar.
@bruce-one bruce-one force-pushed the github-actions-asset-build branch from 3c2df0d to a7edf80 Compare September 10, 2024 00:53
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.

4 participants