1313 runs-on : ubuntu-latest
1414 strategy :
1515 matrix :
16- node : [18.12.0 , 20.9.0 ]
16+ node : [18.x , 20.x, 22.x, latest ]
1717 steps :
1818 - uses : actions/setup-node@v4
1919 with :
@@ -33,35 +33,30 @@ jobs:
3333 runs-on : windows-2019
3434 strategy :
3535 matrix :
36- # FIXME: Node.js 20.9.0 is currently broken on Windows, in the `registerFont` test:
37- # ENOENT: no such file or directory, lstat 'D:\a\node-canvas\node-canvas\examples\pfennigFont\pfennigMultiByte🚀.ttf'
38- # ref: https://github.com/nodejs/node/issues/48673
39- # ref: https://github.com/nodejs/node/pull/50650
40- node : [18.12.0]
36+ node : [18.x, 20.x, 22.x, latest]
4137 steps :
4238 - uses : actions/setup-node@v4
4339 with :
4440 node-version : ${{ matrix.node }}
4541 - uses : actions/checkout@v4
4642 - name : Install Dependencies
4743 run : |
48- Invoke-WebRequest "https://ftp-osl.osuosl.org/pub/gnome/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip" -OutFile "gtk.zip"
49- Expand-Archive gtk.zip -DestinationPath "C:\GTK"
50- Invoke-WebRequest "https://downloads.sourceforge.net/project/libjpeg-turbo/2.0.4/libjpeg-turbo-2.0.4-vc64.exe" -OutFile "libjpeg.exe" -UserAgent NativeHost
51- .\libjpeg.exe /S
52- npm install -g node-gyp@8
53- npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}
44+ # Invoke-WebRequest "https://ftp-osl.osuosl.org/pub/gnome/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip" -OutFile "gtk.zip"
45+ # Expand-Archive gtk.zip -DestinationPath "C:\GTK"
46+ # Invoke-WebRequest "https://downloads.sourceforge.net/project/libjpeg-turbo/2.0.4/libjpeg-turbo-2.0.4-vc64.exe" -OutFile "libjpeg.exe" -UserAgent NativeHost
47+ # .\libjpeg.exe /S
48+ choco install gtk-runtime libjpeg-turbo
5449 - name : Install
5550 run : npm install --build-from-source
5651 - name : Test
5752 run : npm test
5853
5954 macOS :
6055 name : Test on macOS
61- runs-on : macos-12
56+ runs-on : macos-15
6257 strategy :
6358 matrix :
64- node : [18.12.0 , 20.9.0 ]
59+ node : [18.x , 20.x, 22.x, latest ]
6560 steps :
6661 - uses : actions/setup-node@v4
6762 with :
7065 - name : Install Dependencies
7166 run : |
7267 brew update
73- brew install python3 || : # python doesn't need to be linked
7468 brew install pkg-config cairo pango libpng jpeg giflib librsvg
7569 pip install setuptools
7670 - name : Install
8478 steps :
8579 - uses : actions/setup-node@v4
8680 with :
87- node-version : 20.9.0
81+ node-version : latest
8882 - uses : actions/checkout@v4
8983 - name : Install
9084 run : npm install --ignore-scripts
0 commit comments