diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 8226715..ab8e430 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -2,14 +2,17 @@ name: build-release env: ZIG_VERSION: 0.11.0 - MODE: release - OS: linux - ARCH: x86_64 + mode: release + os: linux + arch: x86_64 on: + pull_request: + branches: + - fork push: branches: - - main + - fork paths: - "src/**/*.zig" - "src/*.zig" @@ -17,8 +20,8 @@ on: workflow_dispatch: jobs: - test: - name: release + build-release: + name: build-release runs-on: [self-hosted, linux] steps: - uses: actions/checkout@v4 @@ -31,15 +34,16 @@ jobs: 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: | - zig get-tools - zig get-v8 zig build -Doptimize=ReleaseSafe - - name: Upload artifacts + - name: Upload artifact run: | with: name: libc_v8.a - path: v8-build/${{env.ARCH})-${{env.OS}}/${{env.MODE}}/ninja/obj/zig/libc_v8.a + path: v8-build/${{env.arch}}-${{env.os}}/${{env.mode}}/ninja/obj/zig/libc_v8.a retention-days: 90 -