forked from sass/node-sass
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.27 KB
/
electron-linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Electron Rebuild CI - Linux (x32 & x64)
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
electron:
- 5
- 6
- 7
- 8
include:
# includes a new variable for each electron (essentially a switch statement)
- electron: 5
nodeVersion: 70
- electron: 6
nodeVersion: 73
- electron: 7
nodeVersion: 75
- electron: 8
nodeVersion: 76
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
os: ${{ matrix.os }}
- name: Install packages
run: npm install --unsafe-perm
- name: Install electron-rebuild
run: npm install --save-dev electron-rebuild@latest
- name: Run on ${{ matrix.os }} - Electron v${{ matrix.electron }} (Node ${{ matrix.nodeVersion }})
run: ./node_modules/.bin/electron-rebuild -v=${{ matrix.electron }} -w node-sass
- uses: actions/upload-artifact@v1
with:
name: linux_x64_${{ matrix.nodeVersion }}_binding.node
path: build/Release/binding.node
# npm test failing on pre-existing master issues, commenting out
#- run: npm test
# env:
# CI: true