Skip to content

Commit 6c1ca26

Browse files
committed
update
1 parent 9a73369 commit 6c1ca26

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
php-version: [8.1, 8.2, 8.3] # Add more PHP versions as needed
14+
php-version: [8.1, 8.2] # Add more PHP versions as needed
1515
arch: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu]
1616

1717
steps:
@@ -24,6 +24,14 @@ jobs:
2424
php-version: ${{ matrix.php-version }}
2525
extensions: mbstring
2626

27+
- name: Install cross-compilation tools
28+
if: matrix.arch == 'aarch64-unknown-linux-gnu'
29+
run: sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu
30+
31+
- name: Install cross-compilation tools
32+
if: matrix.arch == 'x86_64-unknown-linux-gnu'
33+
run: sudo apt-get update && sudo apt-get install -y gcc-multilib
34+
2735
- name: Set up Rust
2836
uses: actions-rs/toolchain@v1
2937
with:
@@ -34,6 +42,8 @@ jobs:
3442
run: rustup target add ${{ matrix.arch }}
3543

3644
- name: Build project
45+
env:
46+
CC_aarch64_unknown_linux_gnu: aarch64-linux-gnu-gcc
3747
run: cargo build --release --target ${{ matrix.arch }}
3848

3949
- name: Upload build artifacts

0 commit comments

Comments
 (0)