Skip to content
Merged
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
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ jobs:
- name: Upload Extension Artifact
uses: actions/upload-artifact@v4
with:
name: vscode-escript-native.darwin-universal
path: native/build/Release/vscode-escript-native.darwin-universal.node
name: vscode-escript-native.darwin-arm64
path: native/build/Release/vscode-escript-native.darwin-arm64.node

package:
name: Package
Expand Down Expand Up @@ -157,10 +157,10 @@ jobs:

- run: npm install

- name: Download Temporary Artifact darwin-universal
- name: Download Temporary Artifact darwin-arm64
uses: actions/download-artifact@v4
with:
name: vscode-escript-native.darwin-universal
name: vscode-escript-native.darwin-arm64
path: native/build/Release

- name: Download Temporary Artifact win32-x64
Expand All @@ -180,13 +180,13 @@ jobs:
- name: Upload Extension Artifact
uses: actions/upload-artifact@v4
with:
name: escript-lsp-universal
name: vscode-escript
path: escript-lsp-*.vsix

- name: Delete Temporary Artifact darwin-universal
- name: Delete Temporary Artifact darwin-arm64
uses: geekyeggo/delete-artifact@v5
with:
name: vscode-escript-native.darwin-universal
name: vscode-escript-native.darwin-arm64

- name: Delete Temporary Artifact win32-x64
uses: geekyeggo/delete-artifact@v5
Expand Down
11 changes: 1 addition & 10 deletions native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,7 @@ else()
set(PLATFORM linux)
endif()

if(APPLE AND NOT DEFINED ENV{BUILD_OSX_SLIM_BINARY})
message("** Building universal macOS binary")
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
set(BUILD_OSX_UNIVERSAL_BINARY TRUE)
set(PIPED_OSX_ARCHITECTURES "arm64|x86_64") # For ExternalProject
endif()

if(BUILD_OSX_UNIVERSAL_BINARY)
set(ARCH universal)
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm.*|ARM.*|aarch64)")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm.*|ARM.*|aarch64)")
set(ARCH arm64)
else()
set(ARCH x64)
Expand Down
Loading
Loading