-
Notifications
You must be signed in to change notification settings - Fork 2
159 lines (136 loc) · 4.25 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
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: ['lts/*', '*']
os: [macos-10.15, ubuntu-latest]
steps:
- uses: actions/checkout@v3
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
- name: Install Wine (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
sudo dpkg --add-architecture i386
sudo apt-get update -qy
sudo apt-get install --no-install-recommends -qfy wine32 wine wget ca-certificates
sudo apt-get clean
wget -q http://downloads.sourceforge.net/project/nsis/NSIS%203/3.08/nsis-3.08-setup.exe
wine nsis-3.08-setup.exe /S
# while pgrep wineserver >/dev/null; do echo "Waiting for wineserver"; sleep 1; done
rm -rf /tmp/.wine-*
echo 'wine '\''C:\Program Files\NSIS\makensis.exe'\'' "$@"' > /usr/bin/makensis
chmod +x /usr/bin/makensis
env:
WINEARCH: win32
WINEDEBUG: -all
WINEPREFIX: /wine
- 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
env:
WINEARCH: win32
WINEDEBUG: -all
- name: Print NSIS version (macOS)
if: matrix.os == 'macos-10.15'
run: wine %PROGRAMFILES%/NSIS/makensis /VERSION
env:
WINEARCH: win32
WINEDEBUG: -all
- name: Print NSIS version (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: wine %PROGRAMFILES%/NSIS/makensis /VERSION
env:
WINEARCH: win32
WINEDEBUG: -all
- name: Print NSIS header info (macOS)
if: matrix.os == 'macos-10.15'
run: wine %PROGRAMFILES%/NSIS/makensis /HDRINFO
env:
WINEARCH: win32
WINEDEBUG: -all
- name: Print NSIS header info (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: wine %PROGRAMFILES%/NSIS/makensis /HDRINFO
env:
WINEARCH: win32
WINEDEBUG: -all
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
<<<<<<< HEAD
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile --strict-peer-dependencies
- name: Lint Source
run: pnpm run --if-present lint
- name: Build Source
run: pnpm run --if-present build
- name: Run Tests (macOS)
if: (matrix.os == 'macos-10.15' || matrix.os == 'ubuntu-latest')
run: pnpm run --if-present test:wine
continue-on-error: true # temporary
=======
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
>>>>>>> main