Skip to content

Commit ab88508

Browse files
authored
Merge pull request #9 from joehoyle/php8.3
Php8.3
2 parents 1d16d32 + 48e297d commit ab88508

File tree

5 files changed

+402
-126
lines changed

5 files changed

+402
-126
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,64 @@ on: [push]
44

55
jobs:
66
linux:
7-
runs-on: ubuntu-latest
7+
runs-on: ${{ matrix.builder }}
88
services:
99
registry:
1010
image: registry:2
1111
ports:
1212
- 5000:5000
1313
strategy:
14+
fail-fast: false
1415
matrix:
1516
include:
1617
-
1718
target: x86_64-unknown-linux-gnu
1819
platform: linux/amd64
1920
php-version: '8.0'
21+
distro: bullseye
22+
builder: ubuntu-latest
2023
-
2124
target: aarch64-unknown-linux-gnu
2225
platform: linux/arm64
2326
php-version: '8.0'
27+
distro: bullseye
28+
builder: buildjet-4vcpu-ubuntu-2204-arm
2429
-
2530
target: x86_64-unknown-linux-gnu
2631
platform: linux/amd64
2732
php-version: '8.1'
33+
distro: bookworm
34+
builder: ubuntu-latest
2835
-
2936
target: aarch64-unknown-linux-gnu
3037
platform: linux/arm64
3138
php-version: '8.1'
39+
distro: bookworm
40+
builder: buildjet-4vcpu-ubuntu-2204-arm
3241
-
3342
target: x86_64-unknown-linux-gnu
3443
platform: linux/amd64
3544
php-version: '8.2'
45+
distro: bookworm
46+
builder: ubuntu-latest
3647
-
3748
target: aarch64-unknown-linux-gnu
3849
platform: linux/arm64
3950
php-version: '8.2'
51+
distro: bookworm
52+
builder: buildjet-4vcpu-ubuntu-2204-arm
53+
-
54+
target: aarch64-unknown-linux-gnu
55+
platform: linux/arm64
56+
php-version: '8.3'
57+
distro: bookworm
58+
builder: ubuntu-latest
59+
-
60+
target: x86_64-unknown-linux-gnu
61+
platform: linux/amd64
62+
php-version: '8.3'
63+
distro: bookworm
64+
builder: buildjet-4vcpu-ubuntu-2204-arm
4065
steps:
4166
- name: Checkout
4267
uses: actions/checkout@v1
@@ -67,11 +92,12 @@ jobs:
6792
tags: localhost:5000/phpv8js-build:latest
6893
build-args: |
6994
FROM_PHP=${{ matrix.php-version }}
95+
FROM_DISTRO=${{ matrix.distro }}
7096
7197
- run: mkdir ~/.cargo-registry
7298

7399
- name: Build
74-
run: docker run --rm -v ~/.cargo-registry:/usr/local/cargo/registry -v $PWD:/code localhost:5000/phpv8js-build:latest bash -c 'rustup target add ${{ matrix.target }} ; cargo test --target ${{ matrix.target }} && cargo build --release --target ${{ matrix.target }}'
100+
run: docker run --rm -v $PWD:/code localhost:5000/phpv8js-build:latest bash -c 'rustup target add ${{ matrix.target }} ; RUST_BACKTRACE=1 cargo test --target ${{ matrix.target }} && cargo build --release --target ${{ matrix.target }}'
75101

76102
- name: Rename file
77103
run: cp target/${{ matrix.target }}/release/libv8js.so php${{ matrix.php-version }}-${{ matrix.target }}-libv8js.so
@@ -112,6 +138,12 @@ jobs:
112138
-
113139
target: x86_64-apple-darwin
114140
php-version: '8.2'
141+
-
142+
target: aarch64-apple-darwin
143+
php-version: '8.3'
144+
-
145+
target: x86_64-apple-darwin
146+
php-version: '8.3'
115147
steps:
116148
- name: Checkout
117149
uses: actions/checkout@v1
@@ -124,7 +156,7 @@ jobs:
124156
default: true
125157
override: true
126158
- name: Setup PHP version
127-
run: brew install php@${{ matrix.php-version }} && brew unlink php && brew link --force php@${{ matrix.php-version }}
159+
run: brew update && brew tap shivammathur/php && brew unlink php && ( brew reinstall shivammathur/php/php@${{ matrix.php-version }} || true ) && brew link --force --overwrite shivammathur/php/php@${{ matrix.php-version }} && php -i
128160

129161
- name: Build
130162
uses: actions-rs/cargo@v1

0 commit comments

Comments
 (0)