mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
CI: Use the distribution release configuration for js
artifacts
This commit is contained in:
parent
0447d05d52
commit
74fe899d79
Notes:
github-actions[bot]
2024-11-08 18:30:21 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/74fe899d79e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2225 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/gmta Reviewed-by: https://github.com/nico
2 changed files with 5 additions and 12 deletions
10
.github/workflows/ladybird-js-artifacts.yml
vendored
10
.github/workflows/ladybird-js-artifacts.yml
vendored
|
@ -49,8 +49,7 @@ jobs:
|
|||
|
||||
- name: Create build directory Ubuntu
|
||||
run: |
|
||||
cmake --preset CI -B Build \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
cmake --preset Distribution_CI \
|
||||
-DCMAKE_C_COMPILER=gcc-13 \
|
||||
-DCMAKE_CXX_COMPILER=g++-13 \
|
||||
-DENABLE_GUI_TARGETS=OFF
|
||||
|
@ -62,14 +61,13 @@ jobs:
|
|||
# See: https://github.com/microsoft/vcpkg/discussions/19454
|
||||
- name: Create build directory macOS
|
||||
run: |
|
||||
cmake --preset CI -B Build \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
cmake --preset Distribution_CI \
|
||||
-DCMAKE_OSX_DEPLOYMENT_TARGET="11.0" \
|
||||
-DENABLE_GUI_TARGETS=OFF
|
||||
if: ${{ matrix.os_name == 'macOS' }}
|
||||
|
||||
- name: Build and package js
|
||||
working-directory: Build
|
||||
working-directory: Build/distribution
|
||||
run: |
|
||||
ninja js
|
||||
cpack
|
||||
|
@ -85,5 +83,5 @@ jobs:
|
|||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ladybird-js-${{ matrix.package_type }}
|
||||
path: Build/ladybird-js*.tar.gz
|
||||
path: Build/distribution/ladybird-js*.tar.gz
|
||||
retention-days: 7
|
||||
|
|
|
@ -581,12 +581,7 @@ if (BUILD_TESTING)
|
|||
)
|
||||
endif()
|
||||
|
||||
# FIXME: When we are using CMake >= 3.21, the library installations can be replaced with RUNTIME_DEPENDENCIES.
|
||||
# https://cmake.org/cmake/help/latest/command/install.html
|
||||
include(get_linked_lagom_libraries.cmake)
|
||||
get_linked_lagom_libraries(js js_libraries)
|
||||
|
||||
install(TARGETS js ${js_libraries} COMPONENT js)
|
||||
install(TARGETS js COMPONENT js)
|
||||
|
||||
set(CPACK_GENERATOR "TGZ")
|
||||
set(CPACK_STRIP_FILES TRUE)
|
||||
|
|
Loading…
Reference in a new issue