chore: add loongarch64 build

This commit is contained in:
Hintay 2024-11-17 04:20:54 +09:00
parent e8a48d2f7e
commit 62c643d4fe
No known key found for this signature in database
GPG key ID: 120FC7FF121F2F2D
2 changed files with 5 additions and 1 deletions

View file

@ -6,6 +6,7 @@
"arm6": {"arch": "armv5l", "abi": "eabihf", "name": "linux-arm32-v6"}, "arm6": {"arch": "armv5l", "abi": "eabihf", "name": "linux-arm32-v6"},
"arm7": {"arch": "armv7l", "abi": "eabihf", "name": "linux-arm32-v7a"}, "arm7": {"arch": "armv7l", "abi": "eabihf", "name": "linux-arm32-v7a"},
"arm64": {"arch": "aarch64", "name": "linux-arm64-v8a"}, "arm64": {"arch": "aarch64", "name": "linux-arm64-v8a"},
"loong64": {"arch": "loongarch64", "name": "linux-loong64"},
"riscv64": {"arch": "riscv64", "name": "linux-riscv64"}, "riscv64": {"arch": "riscv64", "name": "linux-riscv64"},
"mips64le": { "arch": "mips64el", "name": "linux-mips64le" }, "mips64le": { "arch": "mips64el", "name": "linux-mips64le" },
"mips64": { "arch": "mips64", "name": "linux-mips64" }, "mips64": { "arch": "mips64", "name": "linux-mips64" },

View file

@ -116,6 +116,8 @@ jobs:
# END Linux ARM 5 6 7 # END Linux ARM 5 6 7
- goos: linux - goos: linux
goarch: riscv64 goarch: riscv64
- goos: linux
goarch: loong64
# BEGIN MIPS # BEGIN MIPS
- goos: linux - goos: linux
goarch: mips64 goarch: mips64
@ -155,10 +157,11 @@ jobs:
- name: Install musl cross compiler - name: Install musl cross compiler
if: env.GOOS == 'linux' if: env.GOOS == 'linux'
uses: 0xJacky/musl-cross-compilers@v0.6.6 uses: nginxui/musl-cross-compilers@v1
id: musl id: musl
with: with:
target: ${{ env.ARCH_NAME }}-linux-musl${{ env.ABI }} target: ${{ env.ARCH_NAME }}-linux-musl${{ env.ABI }}
variant: ${{ env.GOARCH == 'loong64' && 'userdocs/qbt-musl-cross-make' || 'richfelker/musl-cross-make' }}
- name: Post install musl cross compiler - name: Post install musl cross compiler
if: env.GOOS == 'linux' if: env.GOOS == 'linux'