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

Commit

Permalink
CI: Add prebuilt binaries for alpine (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
orgads committed Mar 25, 2021
1 parent db0a835 commit d820296
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,37 @@ jobs:
env:
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

alpine-build:
runs-on: ubuntu-latest
container: node:15-alpine3.12
steps:
- uses: actions/checkout@v2
- name: install additional dependencies
run: |
apk add g++ make python2 libsecret-dev
- run: npm install
name: Setup environment

- run: |
npm run prebuild-node
npm run prebuild-electron
npm run prebuild-electron-arm64
name: Prebuild
- run: |
ls prebuilds/
name: List prebuilds
- name: Upload prebuilds to GitHub
run: npm run upload
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
env:
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Separate step for publishing to NPM so we're sure that generating + uploading prebuilds worked on all platforms
npm-publish:
needs: build
needs: [build, alpine-build]
name: Publish to NPM
runs-on: ubuntu-20.04
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
Expand Down

0 comments on commit d820296

Please sign in to comment.