mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-17 00:38:59 +00:00
49
.github/actions/install/action.yml
vendored
Normal file
49
.github/actions/install/action.yml
vendored
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
name: "Browsercore install"
|
||||||
|
description: "Install deps for the project browsercore"
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: install v8
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
mkdir -p vendor/jsruntime-lib/vendor/v8/${{env.ARCH}}/debug
|
||||||
|
ln -s /usr/local/lib/libc_v8.a vendor/jsruntime-lib/vendor/v8/${{env.ARCH}}/debug/libc_v8.a
|
||||||
|
|
||||||
|
mkdir -p vendor/jsruntime-lib/vendor/v8/${{env.ARCH}}/release
|
||||||
|
ln -s /usr/local/lib/libc_v8.a vendor/jsruntime-lib/vendor/v8/${{env.ARCH}}/release/libc_v8.a
|
||||||
|
|
||||||
|
- name: install deps
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
ln -s /usr/local/lib/libiconv vendor/libiconv
|
||||||
|
|
||||||
|
ln -s /usr/local/lib/netsurf/build vendor/netsurf/build
|
||||||
|
ln -s /usr/local/lib/netsurf/lib vendor/netsurf/lib
|
||||||
|
ln -s /usr/local/lib/netsurf/include vendor/netsurf/include
|
||||||
|
|
||||||
|
# detect file change
|
||||||
|
- uses: dorny/paths-filter@v3.0.2
|
||||||
|
id: changes
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
netsurf:
|
||||||
|
- 'vendor/netsurf/**'
|
||||||
|
|
||||||
|
# if a vendor has changed, install build dependencies.
|
||||||
|
- name: install build dependencies
|
||||||
|
if: steps.changes.outputs.netsurf == 'true'
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
apt update && \
|
||||||
|
apt install -y git curl bash xz-utils python3 ca-certificates pkg-config \
|
||||||
|
libglib2.0-dev gperf libexpat1-dev cmake build-essential
|
||||||
|
|
||||||
|
# if netsurf has changed, force a rebuild.
|
||||||
|
- name: re-build netsurf
|
||||||
|
if: steps.changes.outputs.netsurf == 'true'
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
make clean-netsurf
|
||||||
|
make install-netsurf
|
||||||
28
.github/workflows/wpt.yml
vendored
28
.github/workflows/wpt.yml
vendored
@@ -27,6 +27,7 @@ on:
|
|||||||
types: [opened, synchronize, reopened, ready_for_review]
|
types: [opened, synchronize, reopened, ready_for_review]
|
||||||
|
|
||||||
paths:
|
paths:
|
||||||
|
- ".github/**"
|
||||||
- "build.zig"
|
- "build.zig"
|
||||||
- "src/**/*.zig"
|
- "src/**/*.zig"
|
||||||
- "src/*.zig"
|
- "src/*.zig"
|
||||||
@@ -35,6 +36,11 @@ on:
|
|||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pull-requests: read # required for dorny/paths-filter
|
||||||
|
contents: read
|
||||||
|
packages: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
wpt:
|
wpt:
|
||||||
name: web platform tests
|
name: web platform tests
|
||||||
@@ -50,28 +56,14 @@ jobs:
|
|||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.GH_CI_PAT }}
|
token: ${{ secrets.GH_CI_PAT }}
|
||||||
# fetch submodules recusively, to get jsruntime-lib submodules also.
|
# fetch submodules recusively, to get jsruntime-lib submodules also.
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: install v8
|
- uses: ./.github/actions/install
|
||||||
run: |
|
|
||||||
mkdir -p vendor/jsruntime-lib/vendor/v8/${{env.ARCH}}/debug
|
|
||||||
ln -s /usr/local/lib/libc_v8.a vendor/jsruntime-lib/vendor/v8/${{env.ARCH}}/debug/libc_v8.a
|
|
||||||
|
|
||||||
mkdir -p vendor/jsruntime-lib/vendor/v8/${{env.ARCH}}/release
|
|
||||||
ln -s /usr/local/lib/libc_v8.a vendor/jsruntime-lib/vendor/v8/${{env.ARCH}}/release/libc_v8.a
|
|
||||||
|
|
||||||
- name: install deps
|
|
||||||
run: |
|
|
||||||
ln -s /usr/local/lib/libiconv vendor/libiconv
|
|
||||||
|
|
||||||
ln -s /usr/local/lib/netsurf/build vendor/netsurf/build
|
|
||||||
ln -s /usr/local/lib/netsurf/lib vendor/netsurf/lib
|
|
||||||
ln -s /usr/local/lib/netsurf/include vendor/netsurf/include
|
|
||||||
|
|
||||||
- run: zig build wpt -Dengine=v8 -- --safe --summary
|
- run: zig build wpt -Dengine=v8 -- --safe --summary
|
||||||
|
|
||||||
@@ -88,7 +80,7 @@ jobs:
|
|||||||
echo "${{github.sha}}" > commit.txt
|
echo "${{github.sha}}" > commit.txt
|
||||||
|
|
||||||
- name: upload artifact
|
- name: upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: wpt-results
|
name: wpt-results
|
||||||
path: |
|
path: |
|
||||||
@@ -112,7 +104,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: download artifact
|
- name: download artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: wpt-results
|
name: wpt-results
|
||||||
|
|
||||||
|
|||||||
3
.github/workflows/zig-fmt.yml
vendored
3
.github/workflows/zig-fmt.yml
vendored
@@ -11,6 +11,7 @@ on:
|
|||||||
types: [opened, synchronize, reopened, ready_for_review]
|
types: [opened, synchronize, reopened, ready_for_review]
|
||||||
|
|
||||||
paths:
|
paths:
|
||||||
|
- ".github/**"
|
||||||
- "build.zig"
|
- "build.zig"
|
||||||
- "src/**/*.zig"
|
- "src/**/*.zig"
|
||||||
- "src/*.zig"
|
- "src/*.zig"
|
||||||
@@ -34,7 +35,7 @@ jobs:
|
|||||||
zig_fmt_errs: ${{ steps.fmt.outputs.zig_fmt_errs }}
|
zig_fmt_errs: ${{ steps.fmt.outputs.zig_fmt_errs }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
|||||||
64
.github/workflows/zig-test.yml
vendored
64
.github/workflows/zig-test.yml
vendored
@@ -26,6 +26,7 @@ on:
|
|||||||
types: [opened, synchronize, reopened, ready_for_review]
|
types: [opened, synchronize, reopened, ready_for_review]
|
||||||
|
|
||||||
paths:
|
paths:
|
||||||
|
- ".github/**"
|
||||||
- "build.zig"
|
- "build.zig"
|
||||||
- "src/**/*.zig"
|
- "src/**/*.zig"
|
||||||
- "src/*.zig"
|
- "src/*.zig"
|
||||||
@@ -33,6 +34,11 @@ on:
|
|||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pull-requests: read # required for dorny/paths-filter
|
||||||
|
contents: read
|
||||||
|
packages: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
zig-build-dev:
|
zig-build-dev:
|
||||||
name: zig build dev
|
name: zig build dev
|
||||||
@@ -48,28 +54,14 @@ jobs:
|
|||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.GH_CI_PAT }}
|
token: ${{ secrets.GH_CI_PAT }}
|
||||||
# fetch submodules recusively, to get jsruntime-lib submodules also.
|
# fetch submodules recusively, to get jsruntime-lib submodules also.
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: install v8
|
- uses: ./.github/actions/install
|
||||||
run: |
|
|
||||||
mkdir -p vendor/jsruntime-lib/vendor/v8/${{env.ARCH}}/debug
|
|
||||||
ln -s /usr/local/lib/libc_v8.a vendor/jsruntime-lib/vendor/v8/${{env.ARCH}}/debug/libc_v8.a
|
|
||||||
|
|
||||||
mkdir -p vendor/jsruntime-lib/vendor/v8/${{env.ARCH}}/release
|
|
||||||
ln -s /usr/local/lib/libc_v8.a vendor/jsruntime-lib/vendor/v8/${{env.ARCH}}/release/libc_v8.a
|
|
||||||
|
|
||||||
- name: install deps
|
|
||||||
run: |
|
|
||||||
ln -s /usr/local/lib/libiconv vendor/libiconv
|
|
||||||
|
|
||||||
ln -s /usr/local/lib/netsurf/build vendor/netsurf/build
|
|
||||||
ln -s /usr/local/lib/netsurf/lib vendor/netsurf/lib
|
|
||||||
ln -s /usr/local/lib/netsurf/include vendor/netsurf/include
|
|
||||||
|
|
||||||
- name: zig build debug
|
- name: zig build debug
|
||||||
run: zig build -Dengine=v8
|
run: zig build -Dengine=v8
|
||||||
@@ -88,28 +80,14 @@ jobs:
|
|||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.GH_CI_PAT }}
|
token: ${{ secrets.GH_CI_PAT }}
|
||||||
# fetch submodules recusively, to get jsruntime-lib submodules also.
|
# fetch submodules recusively, to get jsruntime-lib submodules also.
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: install v8
|
- uses: ./.github/actions/install
|
||||||
run: |
|
|
||||||
mkdir -p vendor/jsruntime-lib/vendor/v8/${{env.ARCH}}/debug
|
|
||||||
ln -s /usr/local/lib/libc_v8.a vendor/jsruntime-lib/vendor/v8/${{env.ARCH}}/debug/libc_v8.a
|
|
||||||
|
|
||||||
mkdir -p vendor/jsruntime-lib/vendor/v8/${{env.ARCH}}/release
|
|
||||||
ln -s /usr/local/lib/libc_v8.a vendor/jsruntime-lib/vendor/v8/${{env.ARCH}}/release/libc_v8.a
|
|
||||||
|
|
||||||
- name: install deps
|
|
||||||
run: |
|
|
||||||
ln -s /usr/local/lib/libiconv vendor/libiconv
|
|
||||||
|
|
||||||
ln -s /usr/local/lib/netsurf/build vendor/netsurf/build
|
|
||||||
ln -s /usr/local/lib/netsurf/lib vendor/netsurf/lib
|
|
||||||
ln -s /usr/local/lib/netsurf/include vendor/netsurf/include
|
|
||||||
|
|
||||||
- name: zig build release
|
- name: zig build release
|
||||||
run: zig build -Doptimize=ReleaseSafe -Dengine=v8
|
run: zig build -Doptimize=ReleaseSafe -Dengine=v8
|
||||||
@@ -128,28 +106,14 @@ jobs:
|
|||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.GH_CI_PAT }}
|
token: ${{ secrets.GH_CI_PAT }}
|
||||||
# fetch submodules recusively, to get jsruntime-lib submodules also.
|
# fetch submodules recusively, to get jsruntime-lib submodules also.
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: install v8
|
- uses: ./.github/actions/install
|
||||||
run: |
|
|
||||||
mkdir -p vendor/jsruntime-lib/vendor/v8/${{env.ARCH}}/debug
|
|
||||||
ln -s /usr/local/lib/libc_v8.a vendor/jsruntime-lib/vendor/v8/${{env.ARCH}}/debug/libc_v8.a
|
|
||||||
|
|
||||||
mkdir -p vendor/jsruntime-lib/vendor/v8/${{env.ARCH}}/release
|
|
||||||
ln -s /usr/local/lib/libc_v8.a vendor/jsruntime-lib/vendor/v8/${{env.ARCH}}/release/libc_v8.a
|
|
||||||
|
|
||||||
- name: install deps
|
|
||||||
run: |
|
|
||||||
ln -s /usr/local/lib/libiconv vendor/libiconv
|
|
||||||
|
|
||||||
ln -s /usr/local/lib/netsurf/build vendor/netsurf/build
|
|
||||||
ln -s /usr/local/lib/netsurf/lib vendor/netsurf/lib
|
|
||||||
ln -s /usr/local/lib/netsurf/include vendor/netsurf/include
|
|
||||||
|
|
||||||
- name: zig build test
|
- name: zig build test
|
||||||
run: zig build test -Dengine=v8 -- --json > bench.json
|
run: zig build test -Dengine=v8 -- --json > bench.json
|
||||||
@@ -159,7 +123,7 @@ jobs:
|
|||||||
echo "${{github.sha}}" > commit.txt
|
echo "${{github.sha}}" > commit.txt
|
||||||
|
|
||||||
- name: upload artifact
|
- name: upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: bench-results
|
name: bench-results
|
||||||
path: |
|
path: |
|
||||||
@@ -183,7 +147,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: download artifact
|
- name: download artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: bench-results
|
name: bench-results
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user