File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 18
18
platform : linux/amd64
19
19
php-version : ' 8.0'
20
20
-
21
- os : ubuntu-latest
22
21
target : aarch64-unknown-linux-gnu
23
22
platform : linux/arm64
24
23
php-version : ' 8.0'
27
26
platform : linux/amd64
28
27
php-version : ' 8.1'
29
28
-
30
- os : ubuntu-latest
31
29
target : aarch64-unknown-linux-gnu
32
30
platform : linux/arm64
33
31
php-version : ' 8.1'
36
34
platform : linux/amd64
37
35
php-version : ' 8.2'
38
36
-
39
- os : ubuntu-latest
40
37
target : aarch64-unknown-linux-gnu
41
38
platform : linux/arm64
42
39
php-version : ' 8.2'
@@ -47,11 +44,12 @@ jobs:
47
44
- name : Setup QEMU
48
45
uses : docker/setup-qemu-action@v2
49
46
50
- - name : Set up Docker Buildx
51
- id : buildx
52
- uses : docker/setup-buildx-action@v2
47
+ - name : Cache Cargo
48
+ id : cache-primes
49
+ uses : actions/cache@v3
53
50
with :
54
- driver-opts : network=host
51
+ path : ~/.cargo
52
+ key : " v1"
55
53
56
54
- name : Setup docker
57
55
uses : docker/build-push-action@v2
63
61
build-args : |
64
62
FROM_PHP=${{ matrix.php-version }}
65
63
64
+ - run : mkdir ~/.cargo-registry
65
+
66
66
- name : Build
67
- run : docker run --rm -v $PWD:/code localhost:5000/phpv8js-build:latest bash -c 'rustup target add ${{ matrix.target }} ; cargo build --release --target ${{ matrix.target }}'
67
+ 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 build --release --target ${{ matrix.target }}'
68
68
69
69
- name : Rename file
70
70
run : cp target/${{ matrix.target }}/release/libv8js.so php${{ matrix.php-version }}-${{ matrix.target }}-libv8js.so
You can’t perform that action at this time.
0 commit comments