Skip to content

Commit

Permalink
Support Apex AST Serializer native executable for macOS x64 (#1681)
Browse files Browse the repository at this point in the history
* [apex-ast-serializer] add native executable for macOS x64

* Run package test on macOS x64

* Add CHANGELOG entry
  • Loading branch information
dangmai authored Oct 27, 2024
1 parent b401d39 commit 231eee5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/tests-deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ jobs:
- ubuntu-latest
- windows-latest
- macos-14
- macos-13
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4.2.2
Expand Down Expand Up @@ -171,10 +172,16 @@ jobs:
ASSET_NAME: apex-ast-serializer
OUTPUT_NAME: apex-ast-serializer-${version}-linux-x64
ARTIFACT_NAME: apex-ast-serializer-linux-x64
# macOS 14 and above are ARM64 by default, see this link for more info:
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images
- os: macos-14
ASSET_NAME: apex-ast-serializer
OUTPUT_NAME: apex-ast-serializer-${version}-darwin-arm64
ARTIFACT_NAME: apex-ast-serializer-darwin-arm64
- os: macos-13
ASSET_NAME: apex-ast-serializer
OUTPUT_NAME: apex-ast-serializer-${version}-darwin-x64
ARTIFACT_NAME: apex-ast-serializer-darwin-x64
env:
ASSET_NAME: ${{ matrix.ASSET_NAME }}
OUTPUT_NAME: ${{ matrix.OUTPUT_NAME }}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Unreleased

- Support Apex AST Serializer native executable for macOS x64.
- Improve native executable performance by utilizing Profile-Guided Optimization.
- Improve parsing performance by directly serializing object references.
- Improve parsing performance by using one-pass Depth-First Search to enrich AST.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ import { doesFileExist, getNativeExecutable } from "../src/util.js";

const { arch, platform } = process;

const PREBUILT_ARCHITECTURES = ["win32-x64", "linux-x64", "darwin-arm64"];
const PREBUILT_ARCHITECTURES = [
"win32-x64",
"linux-x64",
"darwin-arm64",
"darwin-x64",
];

const {
values: { dev, force },
Expand Down

0 comments on commit 231eee5

Please sign in to comment.