-
Notifications
You must be signed in to change notification settings - Fork 49
58 lines (47 loc) · 1.42 KB
/
Copy pathpull-request.yaml
File metadata and controls
58 lines (47 loc) · 1.42 KB
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
48
49
50
51
52
53
54
55
56
57
58
name: PR Build Check
run-name: 'PR Build Check: ${{ github.event.pull_request.title }}'
on:
pull_request:
branches:
- master
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
windows-linux-build:
name: Test Windows and Linux builds
runs-on: ubuntu-latest
container:
image: docker.io/electronuserland/builder:16-wine@sha256:a067f3efbc83d41f8a92f4bb347803e11ae0b29204520497edb3d34522d8d458
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Prepare Wine prefix
run: |
export WINEPREFIX="${GITHUB_WORKSPACE}/.wine"
mkdir -p "$WINEPREFIX"
- name: Build Windows and Linux versions
env:
WINEPREFIX: ${{ github.workspace }}/.wine
run: npm run build -- -wl
- name: Verify build artifacts
run: |
ls -la release/
# Check that both Windows and Linux artifacts were created
find release/ -name "*.exe" | grep -q . || exit 1
find release/ -name "*.deb" | grep -q . || exit 1