4949 strategy :
5050 fail-fast : false
5151 matrix :
52- node : [8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 ]
53- canvas_tag : ["v2.11.2 "] # e.g. "v2.6.1"
52+ node : [18 ]
53+ canvas_tag : ["v2.12.0-pb "] # e.g. "v2.6.1"
5454 name : ${{ matrix.canvas_tag }}, Node.js ${{ matrix.node }}, Linux
5555 runs-on : ubuntu-latest
5656 container :
8181 set -ex
8282 mkdir -p prebuild
8383 cp -rfv ./prebuild-branch/prebuild/* ./prebuild/
84- npm install -g node-gyp@6
84+ npm install -g node-gyp
8585 npm install --ignore-scripts
86- . prebuild/Linux/preinstall.sh
8786 cp prebuild/Linux/binding.gyp binding.gyp
8887 node-gyp rebuild -j 2
8988 . prebuild/Linux/bundle.sh
@@ -142,10 +141,10 @@ jobs:
142141 strategy :
143142 fail-fast : false
144143 matrix :
145- node : [13, 14, 15, 16, 17, 18, 19 ]
146- canvas_tag : ["v2.11.2 "] # e.g. "v2.6.1"
144+ node : [18 ]
145+ canvas_tag : ["v2.12.0-pb "] # e.g. "v2.6.1"
147146 name : ${{ matrix.canvas_tag}}, Node.js ${{ matrix.node }}, macOS
148- runs-on : macos-latest
147+ runs-on : macos-15
149148 env :
150149 CANVAS_VERSION_TO_BUILD : ${{ matrix.canvas_tag }}
151150 steps :
@@ -177,6 +176,12 @@ jobs:
177176 brew uninstall --force --ignore-dependencies cairo pango librsvg giflib harfbuzz
178177 npm test
179178
179+ - name : Sign the executable
180+ run : |
181+ for file in $(ls build/Release);
182+ do codesign --deep --force --sign - build/Release/$file;
183+ done;
184+
180185 - name : Make bundle
181186 id : make_bundle
182187 run : . prebuild/tarball.sh
@@ -215,10 +220,10 @@ jobs:
215220 strategy :
216221 fail-fast : false
217222 matrix :
218- node : [13, 14, 15, 16, 17, 18, 19 ]
219- canvas_tag : ["v2.11.2 "] # e.g. "v2.6.1"
223+ node : [18 ]
224+ canvas_tag : ["v2.12.0-pb "] # e.g. "v2.6.1"
220225 name : ${{ matrix.canvas_tag}}, Node.js ${{ matrix.node }}, Windows
221- runs-on : windows-2019
226+ runs-on : windows-2025
222227 env :
223228 CANVAS_VERSION_TO_BUILD : ${{ matrix.canvas_tag }}
224229 steps :
@@ -227,6 +232,7 @@ jobs:
227232 # https://github.com/msys2/setup-msys2#setup-msys2
228233 # https://github.com/actions/virtual-environments/pull/632
229234 - uses : msys2/setup-msys2@v2
235+ id : msys2
230236 with :
231237 msystem : UCRT64
232238 update : true
@@ -245,9 +251,11 @@ jobs:
245251
246252 - name : Build
247253 run : |
254+ winget install --accept-source-agreements --id=Microsoft.VCRedist.2010.x64 -e
255+ echo "MSYS2 LOCATION: ${{steps.msys2.outputs.msys2-location}}"
248256 git checkout ${{ matrix.canvas_tag }}
249257 git checkout $env:GITHUB_SHA -- prebuild/
250- npm install -g node-gyp@8
258+ npm install -g node-gyp
251259 npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}
252260 npm install --ignore-scripts
253261 msys2 -c ". prebuild/Windows/preinstall.sh"
@@ -261,6 +269,8 @@ jobs:
261269 - name : Bundle pt 2
262270 shell : msys2 {0}
263271 run : |
272+ # removes object files and debug
273+ . prebuild/Windows/bundle.sh
264274 ./depends.exe -c -oc depends.csv build\\Release\\canvas.node || true
265275 [ -f depends.csv ] || { echo "error invoking depends.exe"; exit 1; }
266276
0 commit comments