Skip to content

Commit 91dad78

Browse files
committed
try ppc
1 parent dc957bf commit 91dad78

File tree

2 files changed

+21
-12
lines changed

2 files changed

+21
-12
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,25 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
distro: [ 'centos-8', 'debian-11', 'debian-11-arm', 'debian-12-libcxx', 'alpine' ]
16+
distro: [ 'ppc64-cross' ]
1717
version: [ '11.9.169.7' ]
1818

1919
steps:
2020
- name: checkout
2121
uses: actions/checkout@v4
2222

23-
- name: build
24-
run: |
25-
docker build --build-arg v8_version=${{ matrix.version }} ${{ matrix.distro }} -t mybuild
23+
- name: Set up QEMU
24+
uses: docker/setup-qemu-action@v3
25+
26+
- name: Set up Docker Buildx
27+
uses: docker/setup-buildx-action@v3
28+
29+
- name: Build and push
30+
uses: docker/build-push-action@v6
31+
with:
32+
platforms: linux/ppc64le
33+
context: ${{ matrix.distro }}
34+
push: false
2635

2736
- name: copy
2837
run: |
@@ -55,4 +64,4 @@ jobs:
5564
- name: Release artifacts
5665
uses: softprops/action-gh-release@v2
5766
with:
58-
files: assets/*
67+
files: assets/*
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,18 @@ RUN \
4444

4545
# STEP 3
4646
# Build V8 for alpine
47-
FROM alpine:3.16 as v8
47+
FROM debian:12 as v8
4848
COPY --from=source /tmp/v8 /tmp/v8
4949
COPY --from=gn-builder /usr/local/bin/gn /tmp/v8/buildtools/linux64/gn
5050
RUN \
51-
apk add --update --virtual .v8-build-dependencies curl g++ gcc glib-dev icu-dev libstdc++ linux-headers make ninja python3 tar xz && \
51+
apt-get update && apt-get install curl python3 xz-utils git g++ g++-powerpc64le-linux-gnu pkg-config libglib2.0-dev make ninja && \
5252
ln -s /usr/bin/python3 /usr/bin/python && \
5353
cd /tmp/v8 && \
54-
./tools/dev/v8gen.py x64.release -- \
54+
./tools/dev/v8gen.py ppc64.release -- \
5555
binutils_path=\"/usr/bin\" \
5656
target_os=\"linux\" \
57-
target_cpu=\"x64\" \
58-
v8_target_cpu=\"x64\" \
57+
target_cpu=\"ppc64\" \
58+
v8_target_cpu=\"ppc64\" \
5959
v8_enable_future=true \
6060
is_official_build=false \
6161
is_cfi=false \
@@ -75,8 +75,8 @@ RUN \
7575
v8_static_library=true \
7676
v8_experimental_extra_library_files=[] \
7777
v8_extra_library_files=[] && \
78-
ninja -C out.gn/x64.release -j $(getconf _NPROCESSORS_ONLN) "v8_monolith" "d8" && \
79-
find /tmp/v8/out.gn/x64.release -name '*.a'
78+
ninja -C out.gn/ppc64.release -j $(getconf _NPROCESSORS_ONLN) "v8_monolith" "d8" && \
79+
find /tmp/v8/out.gn/ppc64.release -name '*.a'
8080

8181
# STEP 4
8282
# Create package archive

0 commit comments

Comments
 (0)