Skip to content

Commit

Permalink
draft for WiseLibs#990
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Apr 11, 2023
1 parent 409a0f6 commit c99fca6
Showing 1 changed file with 32 additions and 15 deletions.
47 changes: 32 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
matrix:
os:
- ubuntu-20.04
- ubuntu-latest
- macos-latest
- windows-2019
node:
Expand All @@ -43,7 +43,7 @@ jobs:
publish:
if: ${{ github.event_name == 'release' }}
name: Publishing to NPM
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
Expand All @@ -55,15 +55,9 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

prebuild:
strategy:
matrix:
os:
- ubuntu-20.04
- macos-latest
- windows-2019
name: Prebuild on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
prebuild-macos:
name: Prebuild on macOS
runs-on: macos-latest
needs: publish
steps:
- uses: actions/checkout@v3
Expand All @@ -73,10 +67,33 @@ jobs:
- run: npm install --ignore-scripts
- run: ${{ NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}
- run: ${{ ELECTRON_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}
- if: matrix.os == 'windows-2019'
run: ${{ ELECTRON_BUILD_CMD }} --arch ia32 -u ${{ secrets.GITHUB_TOKEN }}
- if: matrix.os == 'macos-latest'
run: ${{ ELECTRON_BUILD_CMD }} --arch arm64 -u ${{ secrets.GITHUB_TOKEN }}
- run: ${{ ELECTRON_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }} --arch arm64

prebuild-windows:
name: Prebuild on Windows
runs-on: windows-2019
needs: publish
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install --ignore-scripts
- run: ${{ NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}
- run: ${{ ELECTRON_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}
- run: ${{ ELECTRON_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }} --arch ia32

prebuild-glibc:
name: Prebuild on ancient glibc
runs-on: ubuntu-latest
container: node:16-stretch
needs: publish
steps:
- uses: actions/checkout@v3
- run: apt-get update && apt-get install build-essential git python3
- run: npm install --ignore-scripts
- run: ${{ NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}
- run: ${{ ELECTRON_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}

prebuild-alpine:
name: Prebuild on alpine
Expand Down

0 comments on commit c99fca6

Please sign in to comment.