summaryrefslogtreecommitdiff
path: root/Meta
diff options
context:
space:
mode:
authorAndrew Kaster <akaster@serenityos.org>2022-12-01 02:08:12 -0700
committerTim Flynn <trflynn89@pm.me>2022-12-03 09:05:40 -0500
commitf539bf467c32b67a7ae6583b01cd325e8de85d13 (patch)
tree47a6ef41742befd056872d485c782b4941f5fce7 /Meta
parent186237aec8d100303711c39b548dd7770e19d773 (diff)
downloadserenity-f539bf467c32b67a7ae6583b01cd325e8de85d13.zip
Meta+CI: Add CI job specifically for bundling serenity-js artifacts
These are used by esvu, and it is sad that we don't have macOS binaries availble for consumption by esvu users. Add a matrix job to handle this separately from the test262 results.
Diffstat (limited to 'Meta')
-rw-r--r--Meta/Lagom/CMakeLists.txt13
1 files changed, 12 insertions, 1 deletions
diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt
index 8b61fe063a..4159c3095b 100644
--- a/Meta/Lagom/CMakeLists.txt
+++ b/Meta/Lagom/CMakeLists.txt
@@ -700,7 +700,18 @@ if (BUILD_LAGOM)
set(CPACK_STRIP_FILES TRUE)
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
set(CPACK_COMPONENTS_ALL js)
- set(CPACK_PACKAGE_FILE_NAME serenity-js)
+ if (APPLE)
+ if("arm64" IN_LIST CMAKE_OSX_ARCHITECTURES AND "x86_64" IN_LIST CMAKE_OSX_ARCHITECTURES)
+ set(CPACK_SYSTEM_NAME "macOS-universal2")
+ else()
+ set(CPACK_SYSTEM_NAME "macOS-${CMAKE_SYSTEM_PROCESSOR}")
+ endif()
+ else()
+ set(CPACK_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
+ endif()
+
+ set(CPACK_ARCHIVE_JS_FILE_NAME "serenity-js-${CPACK_SYSTEM_NAME}")
+ set(CPACK_PACKAGE_FILE_NAME "serenity-js-${CPACK_SYSTEM_NAME}")
include(CPack)
endif()
endif()