mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
ba36312864
Some checks are pending
CI / Lagom (false, FUZZ, ubuntu-22.04, Linux, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, macos-14, macOS, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, ubuntu-22.04, Linux, GNU) (push) Waiting to run
CI / Lagom (true, NO_FUZZ, ubuntu-22.04, Linux, Clang) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (macos-14, macOS, macOS-universal2) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (ubuntu-22.04, Linux, Linux-x86_64) (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Push notes / build (push) Waiting to run
The toolchain ccache no longer exists. Remove it and the "Serenity" prefix from remaining ccache variables.
91 lines
2.7 KiB
YAML
91 lines
2.7 KiB
YAML
name: Package the js repl as a binary artifact
|
|
|
|
on: [push]
|
|
|
|
env:
|
|
LADYBIRD_SOURCE_DIR: ${{ github.workspace }}
|
|
CCACHE_DIR: ${{ github.workspace }}/.ccache
|
|
VCPKG_ROOT: ${{ github.workspace }}/Toolchain/Tarballs/vcpkg
|
|
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
|
|
|
|
jobs:
|
|
build-and-package:
|
|
runs-on: ${{ matrix.os }}
|
|
if: always() && github.repository == 'LadybirdBrowser/ladybird' && github.ref == 'refs/heads/master'
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-22.04]
|
|
package_type: [Linux-x86_64]
|
|
os_name: [Linux]
|
|
include:
|
|
- os: macos-14
|
|
package_type: macOS-universal2
|
|
os_name: macOS
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ matrix.os }}
|
|
cancel-in-progress: true
|
|
|
|
steps:
|
|
- name: Checkout LadybirdBrowser/ladybird
|
|
uses: actions/checkout@v4
|
|
|
|
- name: "Set up environment"
|
|
uses: ./.github/actions/setup
|
|
with:
|
|
os: ${{ matrix.os_name }}
|
|
arch: 'Lagom'
|
|
|
|
- name: Restore Caches
|
|
uses: ./.github/actions/cache-restore
|
|
id: 'cache-restore'
|
|
with:
|
|
os: ${{ matrix.os_name }}
|
|
arch: 'Lagom'
|
|
cache_key_extra: 'LibJS Artifacts'
|
|
ccache_path: ${{ env.CCACHE_DIR }}
|
|
download_cache_path: ${{ github.workspace }}/Build/caches
|
|
|
|
- name: Create build directory Ubuntu
|
|
run: |
|
|
cmake --preset CI -B Build \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_C_COMPILER=gcc-13 \
|
|
-DCMAKE_CXX_COMPILER=g++-13 \
|
|
-DENABLE_GUI_TARGETS=OFF
|
|
if: ${{ matrix.os == 'ubuntu-22.04' }}
|
|
env:
|
|
CCACHE_DIR: ${{ env.CCACHE_DIR }}
|
|
|
|
# FIXME: Add the following flag back when vcpkg supports Universal binaries:
|
|
# -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
|
|
#
|
|
# See: https://github.com/microsoft/vcpkg/discussions/19454
|
|
- name: Create build directory macOS
|
|
run: |
|
|
cmake --preset CI -B Build \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_OSX_DEPLOYMENT_TARGET="11.0" \
|
|
-DENABLE_GUI_TARGETS=OFF
|
|
if: ${{ matrix.os == 'macos-14' }}
|
|
|
|
- name: Build and package js
|
|
working-directory: Build
|
|
run: |
|
|
ninja js
|
|
cpack
|
|
|
|
- name: Save Caches
|
|
uses: ./.github/actions/cache-save
|
|
with:
|
|
arch: 'Lagom'
|
|
ccache_path: ${{ env.CCACHE_DIR }}
|
|
ccache_primary_key: ${{ steps.cache-restore.outputs.ccache_primary_key }}
|
|
|
|
- name: Upload js package
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ladybird-js-${{ matrix.package_type }}
|
|
path: Build/ladybird-js*.tar.gz
|
|
retention-days: 7
|