Skip to content

Commit c511348

Browse files
authored
Build loongarch64 release binaries (#2886)
1 parent 87efe02 commit c511348

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/release.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,21 @@ jobs:
3434
matrix:
3535
target:
3636
- aarch64-apple-darwin
37+
- aarch64-pc-windows-msvc
3738
- aarch64-unknown-linux-musl
3839
- arm-unknown-linux-musleabihf
3940
- armv7-unknown-linux-musleabihf
41+
- loongarch64-unknown-linux-musl
4042
- x86_64-apple-darwin
4143
- x86_64-pc-windows-msvc
42-
- aarch64-pc-windows-msvc
4344
- x86_64-unknown-linux-musl
4445
include:
4546
- target: aarch64-apple-darwin
4647
os: macos-latest
4748
target_rustflags: ''
49+
- target: aarch64-pc-windows-msvc
50+
os: windows-latest
51+
target_rustflags: ''
4852
- target: aarch64-unknown-linux-musl
4953
os: ubuntu-latest
5054
target_rustflags: '--codegen linker=aarch64-linux-gnu-gcc'
@@ -54,14 +58,14 @@ jobs:
5458
- target: armv7-unknown-linux-musleabihf
5559
os: ubuntu-latest
5660
target_rustflags: '--codegen linker=arm-linux-gnueabihf-gcc'
61+
- target: loongarch64-unknown-linux-musl
62+
os: ubuntu-latest
63+
target_rustflags: '--codegen linker=loongarch64-linux-gnu-gcc-14'
5764
- target: x86_64-apple-darwin
5865
os: macos-latest
5966
target_rustflags: ''
6067
- target: x86_64-pc-windows-msvc
6168
os: windows-latest
62-
- target: aarch64-pc-windows-msvc
63-
os: windows-latest
64-
target_rustflags: ''
6569
- target: x86_64-unknown-linux-musl
6670
os: ubuntu-latest
6771
target_rustflags: ''
@@ -86,6 +90,12 @@ jobs:
8690
sudo apt-get update
8791
sudo apt-get install gcc-arm-linux-gnueabihf
8892
93+
- name: Install LoongArch64 Toolchain
94+
if: ${{ matrix.target == 'loongarch64-unknown-linux-musl' }}
95+
run: |
96+
sudo apt-get update
97+
sudo apt-get install gcc-14-loongarch64-linux-gnu
98+
8999
- name: Install AArch64 Toolchain (Windows)
90100
if: ${{ matrix.target == 'aarch64-pc-windows-msvc' }}
91101
run: |

www/install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ if [ -z "${target-}" ]; then
134134
arm64-Darwin) target=aarch64-apple-darwin;;
135135
armv6l-Linux) target=arm-unknown-linux-musleabihf;;
136136
armv7l-Linux) target=armv7-unknown-linux-musleabihf;;
137+
loongarch64-Linux) target=loongarch64-unknown-linux-musl;;
137138
x86_64-Darwin) target=x86_64-apple-darwin;;
138139
x86_64-Linux) target=x86_64-unknown-linux-musl;;
139140
x86_64-MINGW64_NT) target=x86_64-pc-windows-msvc;;

0 commit comments

Comments
 (0)