Skip to content

Commit 47bb67c

Browse files
committed
REMOVE ME
1 parent c0607b3 commit 47bb67c

1 file changed

Lines changed: 3 additions & 157 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 3 additions & 157 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
- "**"
77
# Allows you to run this workflow manually from the Actions tab
88
workflow_dispatch:
9+
pull_request:
10+
types: [opened, synchronize, reopened, ready_for_review]
911

1012
permissions:
1113
contents: write
@@ -16,38 +18,6 @@ env:
1618
LP_CACHE: ".lp-cache"
1719

1820
jobs:
19-
build-x86_64-linux:
20-
env:
21-
OS: linux
22-
ARCH: x86_64
23-
24-
runs-on: ubuntu-22.04
25-
steps:
26-
- uses: mlugg/setup-zig@v2.0.5
27-
with:
28-
version: ${{ env.ZIG_VERSION }}
29-
cache-key: ${{ env.ZIG_VERSION }}-${{ env.OS }}-${{ env.ARCH }}
30-
31-
- uses: actions/checkout@v4
32-
with:
33-
submodules: recursive
34-
fetch-depth: 0
35-
36-
- run: zig env
37-
38-
- run: |
39-
sudo apt-get update
40-
sudo apt-get install -yq libglib2.0-dev
41-
42-
- run: zig build -Doptimize=ReleaseSafe build-v8
43-
- run: mv ${{ env.LP_CACHE }}/v8-${{ env.V8_REVISION }}/out/${{ env.OS }}/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a
44-
45-
- name: Upload the build
46-
uses: ncipollo/release-action@v1
47-
with:
48-
allowUpdates: true
49-
artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a
50-
5121
build-x86_64-linux-debug:
5222
env:
5323
OS: linux
@@ -79,128 +49,4 @@ jobs:
7949
with:
8050
allowUpdates: true
8151
artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}_debug.a
82-
83-
build-aarch64-macos:
84-
env:
85-
OS: macos
86-
ARCH: aarch64
87-
88-
runs-on: macos-latest
89-
steps:
90-
- uses: mlugg/setup-zig@v2
91-
with:
92-
version: ${{ env.ZIG_VERSION }}
93-
cache-key: ${{ env.ZIG_VERSION }}-${{ env.OS }}-${{ env.ARCH }}
94-
95-
- uses: actions/setup-python@v5
96-
with:
97-
python-version: '3.11'
98-
99-
- uses: actions/checkout@v4
100-
with:
101-
submodules: recursive
102-
fetch-depth: 0
103-
104-
- run: zig build -Doptimize=ReleaseSafe build-v8
105-
- run: mv ${{ env.LP_CACHE }}/v8-${{ env.V8_REVISION }}/out/${{ env.OS }}/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a
106-
107-
- name: Upload the build
108-
uses: ncipollo/release-action@v1
109-
with:
110-
allowUpdates: true
111-
artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a
112-
113-
build-arm64-linux:
114-
env:
115-
OS: linux
116-
ARCH: aarch64
117-
118-
runs-on: ubuntu-22.04-arm
119-
steps:
120-
- uses: mlugg/setup-zig@v2
121-
with:
122-
cache-key: ${{ env.ZIG_VERSION }}-${{ env.OS }}-${{ env.ARCH }}
123-
version: ${{ env.ZIG_VERSION }}
124-
125-
- uses: actions/checkout@v4
126-
with:
127-
submodules: recursive
128-
fetch-depth: 0
129-
130-
- run: |
131-
sudo apt-get update
132-
sudo apt-get install -yq libglib2.0-dev lld
133-
wget https://apt.llvm.org/llvm.sh
134-
chmod +x llvm.sh
135-
sudo ./llvm.sh 21
136-
sudo ln -nsf /usr/lib/llvm-21/lib/clang/21/lib/linux/libclang_rt.builtins-aarch64.a /usr/lib/llvm-21/lib/clang/21/lib/linux/libclang_rt.builtins.a && \
137-
sudo ln -nsf /usr/lib/llvm-21/lib/clang/21/lib/linux/ /usr/lib/llvm-21/lib/clang/21/lib/aarch64-unknown-linux-gnu
138-
139-
- run: zig build -Doptimize=ReleaseSafe build-v8
140-
- run: mv ${{ env.LP_CACHE }}/v8-${{ env.V8_REVISION }}/out/${{ env.OS }}/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a
141-
142-
- name: Upload the build
143-
uses: ncipollo/release-action@v1
144-
with:
145-
allowUpdates: true
146-
artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a
147-
148-
build-x86_64-macos:
149-
env:
150-
OS: macos
151-
ARCH: x86_64
152-
153-
runs-on: macos-15-large
154-
steps:
155-
- uses: mlugg/setup-zig@v2
156-
with:
157-
version: ${{ env.ZIG_VERSION }}
158-
cache-key: ${{ env.ZIG_VERSION }}-${{ env.OS }}-${{ env.ARCH }}
159-
160-
- uses: actions/setup-python@v5
161-
with:
162-
python-version: '3.11'
163-
164-
- uses: actions/checkout@v4
165-
with:
166-
submodules: recursive
167-
fetch-depth: 0
168-
169-
- run: zig build -Doptimize=ReleaseSafe build-v8
170-
- run: mv ${{ env.LP_CACHE }}/v8-${{ env.V8_REVISION }}/out/${{ env.OS }}/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a
171-
172-
- name: Upload the build
173-
uses: ncipollo/release-action@v1
174-
with:
175-
allowUpdates: true
176-
artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.ARCH }}.a
177-
178-
build-aarch64-ios:
179-
env:
180-
OS: ios
181-
ARCH: aarch64
182-
TARGET_ENVIRONMENT: simulator
183-
184-
runs-on: macos-latest
185-
steps:
186-
- uses: mlugg/setup-zig@v2
187-
with:
188-
version: ${{ env.ZIG_VERSION }}
189-
cache-key: ${{ env.ZIG_VERSION }}-${{ env.OS }}-${{ env.ARCH }}
190-
- uses: actions/setup-python@v5
191-
with:
192-
python-version: '3.11'
193-
194-
- uses: actions/checkout@v4
195-
with:
196-
submodules: recursive
197-
fetch-depth: 0
198-
199-
- run: zig build -Doptimize=ReleaseSafe build-v8
200-
- run: mv ${{ env.LP_CACHE }}/v8-${{ env.V8_REVISION }}/out/macos/release/obj/zig/libc_v8.a libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.TARGET_ENVIRONMENT }}_${{ env.ARCH }}.a
201-
202-
- name: Upload the build
203-
uses: ncipollo/release-action@v1
204-
with:
205-
allowUpdates: true
206-
artifacts: libc_v8_${{ env.V8_REVISION }}_${{ env.OS }}_${{ env.TARGET_ENVIRONMENT }}_${{ env.ARCH }}.a
52+
tag: v0.2.7

0 commit comments

Comments
 (0)