Skip to content

Commit

Permalink
ci: fix target push branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
krichprollsch committed Oct 30, 2023
1 parent e0b25fc commit 59e626e
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,26 @@ 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"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
test:
name: release
build-release:
name: build-release
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v4
Expand All @@ -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

0 comments on commit 59e626e

Please sign in to comment.