@@ -138,84 +138,84 @@ jobs:
138138 # data: fs.readFileSync(assetName)
139139 # });
140140
141- macOS :
142- strategy :
143- fail-fast : false
144- matrix :
145- node : [13, 14, 15, 16, 17, 18, 19]
146- canvas_tag : ["v2.11.1"] # e.g. "v2.6.1"
147- name : ${{ matrix.canvas_tag}}, Node.js ${{ matrix.node }}, macOS
148- runs-on : macos-latest
149- env :
150- CANVAS_VERSION_TO_BUILD : ${{ matrix.canvas_tag }}
151- steps :
152- - uses : actions/checkout@v2
153- with :
154- ref : ${{ matrix.canvas_tag }}
155- # Fetch all commits/all branches so we can checkout the prebuild
156- # branch's files
157- fetch-depth : 0
141+ # macOS:
142+ # strategy:
143+ # fail-fast: false
144+ # matrix:
145+ # node: [13, 14, 15, 16, 17, 18, 19]
146+ # canvas_tag: ["v2.11.1"] # e.g. "v2.6.1"
147+ # name: ${{ matrix.canvas_tag}}, Node.js ${{ matrix.node }}, macOS
148+ # runs-on: macos-latest
149+ # env:
150+ # CANVAS_VERSION_TO_BUILD: ${{ matrix.canvas_tag }}
151+ # steps:
152+ # - uses: actions/checkout@v2
153+ # with:
154+ # ref: ${{ matrix.canvas_tag }}
155+ # # Fetch all commits/all branches so we can checkout the prebuild
156+ # # branch's files
157+ # fetch-depth: 0
158158
159- - uses : actions/setup-node@v1
160- with :
161- node-version : ${{ matrix.node }}
159+ # - uses: actions/setup-node@v1
160+ # with:
161+ # node-version: ${{ matrix.node }}
162162
163- - name : Build
164- run : |
165- set -Eeuxo pipefail
166- git checkout ${{ matrix.canvas_tag }}
167- git checkout $GITHUB_SHA -- prebuild/
168- npm install -g node-gyp
169- npm install --ignore-scripts
170- . prebuild/macOS/preinstall.sh
171- cp prebuild/macOS/binding.gyp binding.gyp
172- node-gyp rebuild -j 2
173- . prebuild/macOS/bundle.sh
163+ # - name: Build
164+ # run: |
165+ # set -Eeuxo pipefail
166+ # git checkout ${{ matrix.canvas_tag }}
167+ # git checkout $GITHUB_SHA -- prebuild/
168+ # npm install -g node-gyp
169+ # npm install --ignore-scripts
170+ # . prebuild/macOS/preinstall.sh
171+ # cp prebuild/macOS/binding.gyp binding.gyp
172+ # node-gyp rebuild -j 2
173+ # . prebuild/macOS/bundle.sh
174174
175- - name : Test binary
176- run : |
177- brew uninstall --force --ignore-dependencies cairo pango librsvg giflib harfbuzz
178- npm test
175+ # - name: Test binary
176+ # run: |
177+ # brew uninstall --force --ignore-dependencies cairo pango librsvg giflib harfbuzz
178+ # npm test
179179
180- - name : Make bundle
181- id : make_bundle
182- run : . prebuild/tarball.sh
180+ # - name: Make bundle
181+ # id: make_bundle
182+ # run: . prebuild/tarball.sh
183183
184- - name : Upload
185- uses : actions/github-script@v2
186- with :
187- script : |
188- const fs = require("fs");
189- const assetName = "${{ steps.make_bundle.outputs.asset_name }}";
190- const tagName = process.env.UPLOAD_TO || process.env.CANVAS_VERSION_TO_BUILD;
191- const [owner, repo] = process.env.GITHUB_REPOSITORY.split("/");
184+ # - name: Upload
185+ # uses: actions/github-script@v2
186+ # with:
187+ # script: |
188+ # const fs = require("fs");
189+ # const assetName = "${{ steps.make_bundle.outputs.asset_name }}";
190+ # const tagName = process.env.UPLOAD_TO || process.env.CANVAS_VERSION_TO_BUILD;
191+ # const [owner, repo] = process.env.GITHUB_REPOSITORY.split("/");
192192
193- const releases = await github.repos.listReleases({owner, repo});
194- const release = releases.data.find(r => r.tag_name === tagName);
195- if (!release)
196- throw new Error(`Tag ${tagName} not found. Did you make the GitHub release?`);
193+ # const releases = await github.repos.listReleases({owner, repo});
194+ # const release = releases.data.find(r => r.tag_name === tagName);
195+ # if (!release)
196+ # throw new Error(`Tag ${tagName} not found. Did you make the GitHub release?`);
197197
198- const oldAsset = release.assets.find(a => a.name === assetName);
199- if (oldAsset)
200- await github.repos.deleteReleaseAsset({owner, repo, asset_id: oldAsset.id});
198+ # const oldAsset = release.assets.find(a => a.name === assetName);
199+ # if (oldAsset)
200+ # await github.repos.deleteReleaseAsset({owner, repo, asset_id: oldAsset.id});
201201
202- // (This is equivalent to actions/upload-release-asset. We're
203- // already in a script, so might as well do it here.)
204- const r = await github.repos.uploadReleaseAsset({
205- url: release.upload_url,
206- headers: {
207- "content-type": "application/x-gzip",
208- "content-length": `${fs.statSync(assetName).size}`
209- },
210- name: assetName,
211- data: fs.readFileSync(assetName)
212- });
202+ # // (This is equivalent to actions/upload-release-asset. We're
203+ # // already in a script, so might as well do it here.)
204+ # const r = await github.repos.uploadReleaseAsset({
205+ # url: release.upload_url,
206+ # headers: {
207+ # "content-type": "application/x-gzip",
208+ # "content-length": `${fs.statSync(assetName).size}`
209+ # },
210+ # name: assetName,
211+ # data: fs.readFileSync(assetName)
212+ # });
213213
214214 Win :
215215 strategy :
216216 fail-fast : false
217217 matrix :
218- node : [8 ]
218+ node : [12 ]
219219 canvas_tag : ["v2.11.1"] # e.g. "v2.6.1"
220220 name : ${{ matrix.canvas_tag}}, Node.js ${{ matrix.node }}, Windows
221221 runs-on : windows-2019
@@ -246,11 +246,12 @@ jobs:
246246 run : |
247247 git checkout ${{ matrix.canvas_tag }}
248248 git checkout $env:GITHUB_SHA -- prebuild/
249- npm install -g node-gyp@6
249+ npm install -g node-gyp@8
250+ npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}
250251 npm install --ignore-scripts
251252 msys2 -c ". prebuild/Windows/preinstall.sh"
252253 msys2 -c "cp prebuild/Windows/binding.gyp binding.gyp"
253- msys2 -c "node-gyp rebuild -j 2"
254+ npm install --build-from-source
254255
255256 - name : Install Depends
256257 run : |
0 commit comments