-
-
Notifications
You must be signed in to change notification settings - Fork 446
feat: add lodestar binaries to release #6666
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
Merged
Merged
Changes from 10 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
54d0d6e
feat: added binaries creation support
jeluard 8de75cc
feat: added sanity checks
jeluard 76c3e2c
chore: define reusable workflow
jeluard c963bc1
chore: fix sanity check,; disable arm64
jeluard e5cdd83
chore: added workflow_dispatch
jeluard c2d92b9
fix: needs cleanup
jeluard 94bbcdb
chore: update old space size
jeluard 3afab58
chore: address comments
jeluard bbe0e7e
chore: address comments
jeluard 1a19bda
chore: fixed typo
jeluard eb2e9c4
chore: typo
jeluard 1a19650
chore: address comments
jeluard 1fa650e
chore: wording
jeluard c0c7fdd
chore: use frozen lock file
jeluard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| name: Build binaries | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| required: true | ||
| type: string | ||
| workflow_call: | ||
| inputs: | ||
| version: | ||
| required: true | ||
| type: string | ||
|
|
||
| jobs: | ||
| binaries: | ||
| name: Build lodestar binaries | ||
| strategy: | ||
| matrix: | ||
| include: | ||
| - os: ubuntu-latest | ||
| build: | | ||
| npx caxa -e "dashboards/**" -e "docs/**" -D -p "yarn install --production" --input . --output "lodestar" -- "{{caxa}}/node_modules/.bin/node" "--max-old-space-size=8192" "{{caxa}}/node_modules/.bin/lodestar" | ||
| tar -czf "dist/lodestar-${{ inputs.version }}-linux-amd64.tgz" "lodestar" | ||
jeluard marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| runs-on: ${{matrix.os}} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: "./.github/actions/setup-and-build" | ||
| with: | ||
| node: 20 | ||
| - run: | | ||
| mkdir -p dist | ||
| yarn global add caxa@3.0.1 | ||
| ${{ matrix.build }} | ||
| - name: Upload binaries | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: binaries-${{ matrix.os }} | ||
| path: dist/ | ||
| if-no-files-found: error | ||
| - name: Sanity check binary | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| exec.exec('./lodestar dev'); | ||
| await new Promise(resolve => setTimeout(resolve, 30000)); | ||
| const resp = await fetch('http://127.0.0.1:9596/eth/v1/node/version').catch(err => { | ||
| core.setFailed(`Error accessing the API ${err}`); | ||
| process.exit(1); | ||
| }); | ||
| if (resp.status !== 200) { | ||
| core.setFailed(`Failed to access API: ${resp.status}`); | ||
| process.exit(1); | ||
| } | ||
| process.exit(0); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.