-
Notifications
You must be signed in to change notification settings - Fork 6
feat: support Alpine Linux containers #22
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
Changes from all commits
65c4663
de5fb0d
f5de09e
107e063
f01787d
a9ee3c1
fa2dd94
1d4f97e
70bd155
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -231,6 +231,33 @@ jobs: | |
| run: | | ||
| echo "NODE_AUTH_TOKEN is set: ${NODE_AUTH_TOKEN:+yes}" | ||
|
|
||
| test-alpine-container: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| version: [latest, alpha] | ||
| runs-on: ubuntu-latest | ||
| container: | ||
| image: alpine:3.21 | ||
| steps: | ||
| - name: Install Alpine dependencies | ||
| run: apk add --no-cache bash curl gcompat libstdc++ | ||
|
|
||
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | ||
fengmk2 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - name: Setup Vite+ (${{ matrix.version }}) | ||
| uses: ./ | ||
| with: | ||
| version: ${{ matrix.version }} | ||
| run-install: false | ||
| cache: false | ||
|
|
||
| - name: Verify installation | ||
| run: vp --version | ||
|
|
||
| - name: Verify vp exec works | ||
| run: vp exec node -e "console.log('vp exec works in Alpine')" | ||
|
|
||
|
Comment on lines
+256
to
+260
|
||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -110,6 +110,22 @@ steps: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| ``` | ||
|
|
||
| ### Alpine Container | ||
|
|
||
| Alpine Linux uses musl libc instead of glibc. Install compatibility packages before using the action: | ||
|
|
||
| ```yaml | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| container: | ||
| image: alpine:3.21 | ||
| steps: | ||
| - run: apk add --no-cache bash curl gcompat libstdc++ | ||
| - uses: actions/checkout@v6 | ||
| - uses: voidzero-dev/setup-vp@v1 | ||
fengmk2 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ``` | ||
|
|
||
|
Comment on lines
+113
to
+128
|
||
| ### Matrix Testing with Multiple Node.js Versions | ||
|
|
||
| ```yaml | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.