Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit d820296

Browse files
authored
CI: Add prebuilt binaries for alpine (#354)
1 parent db0a835 commit d820296

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,37 @@ jobs:
9797
env:
9898
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9999

100+
alpine-build:
101+
runs-on: ubuntu-latest
102+
container: node:15-alpine3.12
103+
steps:
104+
- uses: actions/checkout@v2
105+
- name: install additional dependencies
106+
run: |
107+
apk add g++ make python2 libsecret-dev
108+
109+
- run: npm install
110+
name: Setup environment
111+
112+
- run: |
113+
npm run prebuild-node
114+
npm run prebuild-electron
115+
npm run prebuild-electron-arm64
116+
name: Prebuild
117+
118+
- run: |
119+
ls prebuilds/
120+
name: List prebuilds
121+
122+
- name: Upload prebuilds to GitHub
123+
run: npm run upload
124+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
125+
env:
126+
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
127+
100128
# Separate step for publishing to NPM so we're sure that generating + uploading prebuilds worked on all platforms
101129
npm-publish:
102-
needs: build
130+
needs: [build, alpine-build]
103131
name: Publish to NPM
104132
runs-on: ubuntu-20.04
105133
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)