Skip to content

ci: build docker image with v8 lib #9

ci: build docker image with v8 lib

ci: build docker image with v8 lib #9

Workflow file for this run

name: build-release
env:
ZIG_VERSION: 0.11.0
mode: release
os: linux
arch: x86_64
on:
pull_request:
branches:
- fork
push:
branches:
- fork
paths:
- "src/**/*.zig"
- "src/*.zig"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-release:
name: build-release
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Install zig
run: |
curl https://ziglang.org/download/${{env.ZIG_VERSION}}/zig-linux-x86_64-${{env.ZIG_VERSION}}.tar.xz -L -o zig.tar.xz
tar -xf zig.tar.xz
echo "$(pwd)/zig-linux-x86_64-${{env.ZIG_VERSION}}" >> $GITHUB_PATH
- name: Prepare build
run: |
zig build get-tools
zig build get-v8
- name: Build v8
run: |
mkdir -p v8-build/${{env.arch}}-${{env.os}}/${{env.mode}}/ninja
zig build -Doptimize=ReleaseSafe
- name: Upload artifact
run: |
with:
name: libc_v8.a
path: v8-build/${{env.arch}}-${{env.os}}/${{env.mode}}/ninja/obj/zig/libc_v8.a
retention-days: 90