Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/prebuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,12 @@ jobs:
matrix:
node: [20]
canvas_tag: ["v2.11.2"] # e.g. "v2.6.1"
name: ${{ matrix.canvas_tag}}, Node.js ${{ matrix.node }}, macOS
arch: ["x64", "arm64"]
name: ${{ matrix.canvas_tag}}, Node.js ${{ matrix.node }}, ${{ matrix.arch }}, macOS
runs-on: macos-latest
env:
CANVAS_VERSION_TO_BUILD: ${{ matrix.canvas_tag }}
CANVAS_ARCH_TO_BUILD: ${{ matrix.arch }}
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -170,10 +172,11 @@ jobs:
npm install --ignore-scripts
. prebuild/macOS/preinstall.sh
cp prebuild/macOS/binding.gyp binding.gyp
node-gyp rebuild -j 2
node-gyp rebuild -j 2 --arch=${{ matrix.arch }}
. prebuild/macOS/bundle.sh

- name: Test binary
if: matrix.arch == 'x64'
run: |
brew uninstall --force --ignore-dependencies cairo pango librsvg giflib harfbuzz
npm test
Expand Down
3 changes: 2 additions & 1 deletion prebuild/tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ FILENAME=$(
node -e "
var p = process, v = p.versions, libc = require('detect-libc').familySync() || 'unknown';
const tagName = p.env.UPLOAD_TO || p.env.CANVAS_VERSION_TO_BUILD;
console.log(['canvas', tagName, 'node-v' + v.modules, p.platform, libc, p.arch].join('-'));
const arch = p.env.CANVAS_ARCH_TO_BUILD || p.arch;
console.log(['canvas', tagName, 'node-v' + v.modules, p.platform, libc, arch].join('-'));
"
).tar.gz;

Expand Down