-
Notifications
You must be signed in to change notification settings - Fork 2
125 lines (108 loc) · 3.06 KB
/
wine.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
name: CI:Wine
on:
push:
paths:
- '.github/**'
- 'src/**'
- 'test/**'
- 'types/**'
- 'package.json'
- 'pnpm-lock.yaml'
pull_request:
paths:
- '.github/**'
- 'src/**'
- 'test/**'
- 'types/**'
- 'package.json'
- 'pnpm-lock.yaml'
workflow_dispatch:
jobs:
default:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version: ['14', '16', '18']
os: [macos-10.15, ubuntu-latest]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 10
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Wine (macOS)
if: matrix.os == 'macos-10.15'
run: |
brew update
brew tap gcenx/wine
brew install --cask --no-quarantine gcenx/wine/wine-crossover
env:
WINEARCH: win32
WINEPREFIX: ${{ runner.temp }}/.wine32
- name: Install Wine (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
sudo dpkg --add-architecture i386
sudo apt-get -y update
sudo apt-get -y install wine-stable
env:
WINEARCH: win32
WINEPREFIX: ${{ runner.temp }}/.wine32
- name: Install NSIS
run: |
curl -L https://downloads.sourceforge.net/project/nsis/NSIS%203/3.09/nsis-3.09-setup.exe -o ${{ runner.temp }}/nsis-setup-$GITHUB_SHA.exe
wine ${{ runner.temp }}/nsis-setup-$GITHUB_SHA.exe /S
wine regedit "${GITHUB_WORKSPACE}/.github/nsis.reg"
env:
WINEARCH: win32
WINEDEBUG: -all
- name: Print NSIS version (macOS)
if: matrix.os == 'macos-10.15'
run: wine makensis /VERSION
env:
WINEARCH: win32
WINEDEBUG: -all
- name: Print NSIS version (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: wine makensis /VERSION
env:
WINEARCH: win32
WINEDEBUG: -all
- name: Print NSIS header info (macOS)
if: matrix.os == 'macos-10.15'
run: wine makensis /HDRINFO
env:
WINEARCH: win32
WINEDEBUG: -all
- name: Print NSIS header info (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: wine makensis /HDRINFO
env:
WINEARCH: win32
WINEDEBUG: -all
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
with:
version: 7
run_install: |
- recursive: true
- args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Lint Source
run: pnpm --if-present run lint
- name: Build Source
run: pnpm --if-present run build
- name: Run Tests (macOS)
if: matrix.os == 'macos-10.15'
run: pnpm run --if-present test:wine
continue-on-error: true # unreliable, often times out
- name: Run Tests (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: pnpm run --if-present test:wine