mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +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: 74fe899d79
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
|
- name: Create build directory Ubuntu
|
||||||
run: |
|
run: |
|
||||||
cmake --preset CI -B Build \
|
cmake --preset Distribution_CI \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DCMAKE_C_COMPILER=gcc-13 \
|
-DCMAKE_C_COMPILER=gcc-13 \
|
||||||
-DCMAKE_CXX_COMPILER=g++-13 \
|
-DCMAKE_CXX_COMPILER=g++-13 \
|
||||||
-DENABLE_GUI_TARGETS=OFF
|
-DENABLE_GUI_TARGETS=OFF
|
||||||
|
@ -62,14 +61,13 @@ jobs:
|
||||||
# See: https://github.com/microsoft/vcpkg/discussions/19454
|
# See: https://github.com/microsoft/vcpkg/discussions/19454
|
||||||
- name: Create build directory macOS
|
- name: Create build directory macOS
|
||||||
run: |
|
run: |
|
||||||
cmake --preset CI -B Build \
|
cmake --preset Distribution_CI \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DCMAKE_OSX_DEPLOYMENT_TARGET="11.0" \
|
-DCMAKE_OSX_DEPLOYMENT_TARGET="11.0" \
|
||||||
-DENABLE_GUI_TARGETS=OFF
|
-DENABLE_GUI_TARGETS=OFF
|
||||||
if: ${{ matrix.os_name == 'macOS' }}
|
if: ${{ matrix.os_name == 'macOS' }}
|
||||||
|
|
||||||
- name: Build and package js
|
- name: Build and package js
|
||||||
working-directory: Build
|
working-directory: Build/distribution
|
||||||
run: |
|
run: |
|
||||||
ninja js
|
ninja js
|
||||||
cpack
|
cpack
|
||||||
|
@ -85,5 +83,5 @@ jobs:
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ladybird-js-${{ matrix.package_type }}
|
name: ladybird-js-${{ matrix.package_type }}
|
||||||
path: Build/ladybird-js*.tar.gz
|
path: Build/distribution/ladybird-js*.tar.gz
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
|
@ -581,12 +581,7 @@ if (BUILD_TESTING)
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# FIXME: When we are using CMake >= 3.21, the library installations can be replaced with RUNTIME_DEPENDENCIES.
|
install(TARGETS js COMPONENT js)
|
||||||
# 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)
|
|
||||||
|
|
||||||
set(CPACK_GENERATOR "TGZ")
|
set(CPACK_GENERATOR "TGZ")
|
||||||
set(CPACK_STRIP_FILES TRUE)
|
set(CPACK_STRIP_FILES TRUE)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue