Skip to content

Commit

Permalink
Min macos version
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Feb 5, 2024
1 parent 5f1f03d commit 08f8811
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
export CXX=$(xcrun -f clang++);
SYSROOT=$(xcrun --sdk macosx --show-sdk-path);
export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT";
export MACOSX_DEPLOYMENT_TARGET='11.0'
yarn build --target aarch64-apple-darwin
strip -x skia.darwin-arm64.node
- host: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/skia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ jobs:

- name: Compile skia
run: node ./scripts/build-skia.js --target=aarch64-apple-darwin
env:
MACOSX_DEPLOYMENT_TARGET: '11.0'

- name: Install dependencies
run: yarn install --immutable --mode=skip-build
Expand Down
6 changes: 3 additions & 3 deletions scripts/build-skia.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ switch (TARGET_TRIPLE) {
case 'aarch64-apple-darwin':
ExtraSkiaBuildFlag += ' target_cpu="arm64" target_os="mac"'
ExtraCflagsCC += ', "--target=arm64-apple-macos", "-mmacosx-version-min=11.0"'
ExtraLdFlags = '"--target=arm64-apple-macos"'
ExtraAsmFlags = '"--target=arm64-apple-macos"'
ExtraCflags = '"--target=arm64-apple-macos"'
ExtraLdFlags = '"--target=arm64-apple-macos", "-mmacosx-version-min=11.0"'
ExtraAsmFlags = '"--target=arm64-apple-macos", "-mmacosx-version-min=11.0"'
ExtraCflags = '"--target=arm64-apple-macos", "-mmacosx-version-min=11.0"'
GN_ARGS.push(
`extra_ldflags=[${ExtraLdFlags}]`,
`extra_asmflags=[${ExtraAsmFlags}]`,
Expand Down

1 comment on commit 08f8811

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 08f8811 Previous: c0be5da Ratio
Draw house#skia-canvas 29.5 ops/sec (±0.67%) 29.51 ops/sec (±0.36%) 1.00
Draw house#node-canvas 37.6 ops/sec (±0.55%) 37.26 ops/sec (±0.59%) 0.99
Draw house#@napi-rs/skia 29.7 ops/sec (±0.39%) 29.52 ops/sec (±0.8%) 0.99
Draw gradient#skia-canvas 28 ops/sec (±0.26%) 28.5 ops/sec (±0.25%) 1.02
Draw gradient#node-canvas 37 ops/sec (±0.5%) 36.3 ops/sec (±0.53%) 0.98
Draw gradient#@napi-rs/skia 29 ops/sec (±0.75%) 28.3 ops/sec (±0.64%) 0.98

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.