mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
ci: remove container usage and download v8 from release
This commit is contained in:
61
.github/actions/install/action.yml
vendored
61
.github/actions/install/action.yml
vendored
@@ -1,23 +1,72 @@
|
|||||||
name: "Browsercore install"
|
name: "Browsercore install"
|
||||||
description: "Install deps for the project browsercore"
|
description: "Install deps for the project browsercore"
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
zig:
|
||||||
|
description: 'Zig version to install'
|
||||||
|
required: false
|
||||||
|
default: '0.12.1'
|
||||||
|
arch:
|
||||||
|
description: 'CPU arch used to select the v8 lib'
|
||||||
|
required: false
|
||||||
|
default: 'x86_64'
|
||||||
|
os:
|
||||||
|
description: 'OS used to select the v8 lib'
|
||||||
|
required: false
|
||||||
|
default: 'linux'
|
||||||
|
zig-v8:
|
||||||
|
description: 'zig v8 version to install'
|
||||||
|
required: false
|
||||||
|
default: 'v0.1.5'
|
||||||
|
v8:
|
||||||
|
description: 'v8 version to install'
|
||||||
|
required: false
|
||||||
|
default: '11.1.134'
|
||||||
|
cache-dir:
|
||||||
|
description: 'cache dir to use'
|
||||||
|
required: false
|
||||||
|
default: '~/.cache'
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install apt deps
|
||||||
|
shell: bash
|
||||||
|
run: sudo apt-get install -y wget xz-utils python3 ca-certificates git pkg-config libglib2.0-dev gperf libexpat1-dev cmake clang
|
||||||
|
|
||||||
|
- uses: mlugg/setup-zig@v1
|
||||||
|
with:
|
||||||
|
version: ${{ inputs.zig }}
|
||||||
|
|
||||||
|
- name: Cache v8
|
||||||
|
id: cache-v8
|
||||||
|
uses: actions/cache@v3
|
||||||
|
env:
|
||||||
|
cache-name: cache-v8
|
||||||
|
with:
|
||||||
|
path: ${{ inputs.cache-dir }}/v8
|
||||||
|
key: libc_v8_${{ inputs.v8 }}_${{ inputs.os }}_${{ inputs.arch }}.a
|
||||||
|
|
||||||
|
- if: ${{ steps.cache-v8.outputs.cache-hit != 'true' }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
mkdir -p ${{ inputs.cache-dir }}/v8
|
||||||
|
|
||||||
|
wget -O ${{ inputs.cache-dir }}/v8/libc_v8.a https://github.com/lightpanda-io/zig-v8-fork/releases/download/${{ inputs.zig-v8 }}/libc_v8_${{ inputs.v8 }}_${{ inputs.os }}_${{ inputs.arch }}.a
|
||||||
|
|
||||||
- name: install v8
|
- name: install v8
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mkdir -p vendor/zig-js-runtime/vendor/v8/${{env.ARCH}}/debug
|
mkdir -p vendor/zig-js-runtime/vendor/v8/${{inputs.arch}}-${{inputs.os}}/debug
|
||||||
ln -s /usr/local/lib/libc_v8.a vendor/zig-js-runtime/vendor/v8/${{env.ARCH}}/debug/libc_v8.a
|
ln -s ${{ inputs.cache-dir }}/v8/libc_v8.a vendor/zig-js-runtime/vendor/v8/${{inputs.arch}}-${{inputs.os}}/debug/libc_v8.a
|
||||||
|
|
||||||
mkdir -p vendor/zig-js-runtime/vendor/v8/${{env.ARCH}}/release
|
mkdir -p vendor/zig-js-runtime/vendor/v8/${{inputs.arch}}-${{inputs.os}}/release
|
||||||
ln -s /usr/local/lib/libc_v8.a vendor/zig-js-runtime/vendor/v8/${{env.ARCH}}/release/libc_v8.a
|
ln -s ${{ inputs.cache-dir }}/v8/libc_v8.a vendor/zig-js-runtime/vendor/v8/${{inputs.arch}}-${{inputs.os}}/release/libc_v8.a
|
||||||
|
|
||||||
- name: libiconv
|
- name: libiconv
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: make install-libiconv
|
||||||
ln -s /usr/local/lib/libiconv vendor/libiconv
|
|
||||||
|
|
||||||
- name: build mimalloc
|
- name: build mimalloc
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
@@ -1,8 +1,5 @@
|
|||||||
name: nightly build
|
name: nightly build
|
||||||
|
|
||||||
env:
|
|
||||||
ARCH: x86_64-linux
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "2 2 * * *"
|
- cron: "2 2 * * *"
|
||||||
@@ -12,26 +9,14 @@ on:
|
|||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
packages: read
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-linux-x86_64:
|
||||||
name: nightly build
|
env:
|
||||||
|
ARCH: x86_64
|
||||||
|
OS: linux
|
||||||
|
|
||||||
strategy:
|
runs-on: ubuntu-latest
|
||||||
matrix:
|
|
||||||
target:
|
|
||||||
- x86_64-linux
|
|
||||||
include:
|
|
||||||
- target: x86_64-linux
|
|
||||||
os: ubuntu-latest
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
container:
|
|
||||||
image: ghcr.io/lightpanda-io/zig-browsercore:0.12.1
|
|
||||||
credentials:
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -47,11 +32,11 @@ jobs:
|
|||||||
run: zig build --release=safe -Doptimize=ReleaseSafe -Dengine=v8
|
run: zig build --release=safe -Doptimize=ReleaseSafe -Dengine=v8
|
||||||
|
|
||||||
- name: Rename binary
|
- name: Rename binary
|
||||||
run: mv zig-out/bin/browsercore-get lightpanda-get-${{ matrix.target }}
|
run: mv zig-out/bin/browsercore-get lightpanda-get-${{ env.ARCH }}-${{ env.OS }}
|
||||||
|
|
||||||
- name: Upload the build
|
- name: Upload the build
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
artifacts: lightpanda-get-${{ matrix.target }}
|
artifacts: lightpanda-get-${{ env.ARCH }}-${{ env.OS }}
|
||||||
tag: nightly
|
tag: nightly
|
||||||
|
|||||||
11
.github/workflows/wpt.yml
vendored
11
.github/workflows/wpt.yml
vendored
@@ -1,7 +1,6 @@
|
|||||||
name: wpt
|
name: wpt
|
||||||
|
|
||||||
env:
|
env:
|
||||||
ARCH: x86_64-linux
|
|
||||||
AWS_ACCESS_KEY_ID: ${{ vars.LPD_PERF_AWS_ACCESS_KEY_ID }}
|
AWS_ACCESS_KEY_ID: ${{ vars.LPD_PERF_AWS_ACCESS_KEY_ID }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.LPD_PERF_AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.LPD_PERF_AWS_SECRET_ACCESS_KEY }}
|
||||||
AWS_BUCKET: ${{ vars.LPD_PERF_AWS_BUCKET }}
|
AWS_BUCKET: ${{ vars.LPD_PERF_AWS_BUCKET }}
|
||||||
@@ -46,16 +45,6 @@ jobs:
|
|||||||
if: github.event.pull_request.draft == false
|
if: github.event.pull_request.draft == false
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: ghcr.io/lightpanda-io/zig-browsercore:0.12.1
|
|
||||||
credentials:
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
# docker blocks io_uring syscalls by default now.
|
|
||||||
# see https://github.com/tigerbeetle/tigerbeetle/pull/1995
|
|
||||||
# see https://github.com/moby/moby/pull/46762
|
|
||||||
options: "--security-opt seccomp=unconfined"
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|||||||
14
.github/workflows/zig-fmt.yml
vendored
14
.github/workflows/zig-fmt.yml
vendored
@@ -1,5 +1,8 @@
|
|||||||
name: zig-fmt
|
name: zig-fmt
|
||||||
|
|
||||||
|
env:
|
||||||
|
ZIG_VERSION: 0.12.1
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
@@ -26,15 +29,12 @@ jobs:
|
|||||||
if: github.event.pull_request.draft == false
|
if: github.event.pull_request.draft == false
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: ghcr.io/lightpanda-io/zig:0.12.1
|
|
||||||
credentials:
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
outputs:
|
|
||||||
zig_fmt_errs: ${{ steps.fmt.outputs.zig_fmt_errs }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- uses: mlugg/setup-zig@v1
|
||||||
|
with:
|
||||||
|
version: ${{ env.ZIG_VERSION }}
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|||||||
21
.github/workflows/zig-test.yml
vendored
21
.github/workflows/zig-test.yml
vendored
@@ -1,7 +1,6 @@
|
|||||||
name: zig-test
|
name: zig-test
|
||||||
|
|
||||||
env:
|
env:
|
||||||
ARCH: x86_64-linux
|
|
||||||
AWS_ACCESS_KEY_ID: ${{ vars.LPD_PERF_AWS_ACCESS_KEY_ID }}
|
AWS_ACCESS_KEY_ID: ${{ vars.LPD_PERF_AWS_ACCESS_KEY_ID }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.LPD_PERF_AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.LPD_PERF_AWS_SECRET_ACCESS_KEY }}
|
||||||
AWS_BUCKET: ${{ vars.LPD_PERF_AWS_BUCKET }}
|
AWS_BUCKET: ${{ vars.LPD_PERF_AWS_BUCKET }}
|
||||||
@@ -44,11 +43,6 @@ jobs:
|
|||||||
if: github.event.pull_request.draft == false
|
if: github.event.pull_request.draft == false
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: ghcr.io/lightpanda-io/zig-browsercore:0.12.1
|
|
||||||
credentials:
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -70,11 +64,6 @@ jobs:
|
|||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: ghcr.io/lightpanda-io/zig-browsercore:0.12.1
|
|
||||||
credentials:
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -96,16 +85,6 @@ jobs:
|
|||||||
if: github.event.pull_request.draft == false
|
if: github.event.pull_request.draft == false
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: ghcr.io/lightpanda-io/zig-browsercore:0.12.1
|
|
||||||
credentials:
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
# docker blocks io_uring syscalls by default now.
|
|
||||||
# see https://github.com/tigerbeetle/tigerbeetle/pull/1995
|
|
||||||
# see https://github.com/moby/moby/pull/46762
|
|
||||||
options: "--security-opt seccomp=unconfined"
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user