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
chore: Add GitHub Actions for Alpine CI #2823
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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,49 @@ | ||
name: Build bindings for Alpine releases | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: node:${{ matrix.node }}-alpine${{ matrix.alpine }} | ||
env: | ||
SKIP_SASS_BINARY_DOWNLOAD_FOR_CI: true | ||
strategy: | ||
matrix: | ||
node: | ||
- 6 | ||
- 8.16.2 | ||
- 10 | ||
- 12 | ||
- 13 | ||
- 14 | ||
include: | ||
- node: 6 | ||
alpine: "" | ||
- node: 8.16.2 | ||
alpine: "3.9" | ||
- node: 10 | ||
alpine: "3.9" | ||
- node: 12 | ||
alpine: "3.9" | ||
- node: 13 | ||
alpine: "3.10" | ||
- node: 14 | ||
alpine: "3.10" | ||
steps: | ||
- name: Install Alpine build tools | ||
run: apk add --no-cache python make git gcc g++ | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Install packages | ||
run: npm install --unsafe-perm | ||
|
||
- name: Run tests | ||
run: npm test | ||
|
||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: ${{ matrix.node }} | ||
path: vendor/ |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Give #2822 we'll want to use 10.16
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't run into this one in the testing, can you give an example of what Alpine version you hit the issue with?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the end the gist of the problem appears to be that binaries built on newer alpine version didn't work on older alpine versions. I think most alpine docker images come 3.9, 3.10, 3.11, so we'll probably want to build binaries in whatever the lowest is for the specific node version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, there are tags that include the Alpine version, so I can take a look at aligning that details to the run
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've pinned them to the oldest versions now