@@ -4,39 +4,64 @@ on: [push]
4
4
5
5
jobs :
6
6
linux :
7
- runs-on : ubuntu-latest
7
+ runs-on : ${{ matrix.builder }}
8
8
services :
9
9
registry :
10
10
image : registry:2
11
11
ports :
12
12
- 5000:5000
13
13
strategy :
14
+ fail-fast : false
14
15
matrix :
15
16
include :
16
17
-
17
18
target : x86_64-unknown-linux-gnu
18
19
platform : linux/amd64
19
20
php-version : ' 8.0'
21
+ distro : bullseye
22
+ builder : ubuntu-latest
20
23
-
21
24
target : aarch64-unknown-linux-gnu
22
25
platform : linux/arm64
23
26
php-version : ' 8.0'
27
+ distro : bullseye
28
+ builder : buildjet-4vcpu-ubuntu-2204-arm
24
29
-
25
30
target : x86_64-unknown-linux-gnu
26
31
platform : linux/amd64
27
32
php-version : ' 8.1'
33
+ distro : bookworm
34
+ builder : ubuntu-latest
28
35
-
29
36
target : aarch64-unknown-linux-gnu
30
37
platform : linux/arm64
31
38
php-version : ' 8.1'
39
+ distro : bookworm
40
+ builder : buildjet-4vcpu-ubuntu-2204-arm
32
41
-
33
42
target : x86_64-unknown-linux-gnu
34
43
platform : linux/amd64
35
44
php-version : ' 8.2'
45
+ distro : bookworm
46
+ builder : ubuntu-latest
36
47
-
37
48
target : aarch64-unknown-linux-gnu
38
49
platform : linux/arm64
39
50
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
40
65
steps :
41
66
- name : Checkout
42
67
uses : actions/checkout@v1
@@ -67,11 +92,12 @@ jobs:
67
92
tags : localhost:5000/phpv8js-build:latest
68
93
build-args : |
69
94
FROM_PHP=${{ matrix.php-version }}
95
+ FROM_DISTRO=${{ matrix.distro }}
70
96
71
97
- run : mkdir ~/.cargo-registry
72
98
73
99
- 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 }}'
75
101
76
102
- name : Rename file
77
103
run : cp target/${{ matrix.target }}/release/libv8js.so php${{ matrix.php-version }}-${{ matrix.target }}-libv8js.so
@@ -112,6 +138,12 @@ jobs:
112
138
-
113
139
target : x86_64-apple-darwin
114
140
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'
115
147
steps :
116
148
- name : Checkout
117
149
uses : actions/checkout@v1
@@ -124,7 +156,7 @@ jobs:
124
156
default : true
125
157
override : true
126
158
- 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
128
160
129
161
- name : Build
130
162
uses : actions-rs/cargo@v1
0 commit comments