Skip to content

Commit 312cd5b

Browse files
authored
Update build.yml
1 parent 97d6397 commit 312cd5b

1 file changed

Lines changed: 7 additions & 25 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
target: [arc-linux-gnu, arm-freebsd-eabihf, arm-linux-gnueabi, arm-linux-gnueabihf, arm-linux-musleabi, arm-linux-musleabihf, arm-netbsd-eabi, arm-netbsd-eabihf, arm-openbsd-eabi, armeb-linux-gnueabi, armeb-linux-gnueabihf, armeb-linux-musleabi, armeb-linux-musleabihf, armeb-netbsd-eabi, armeb-netbsd-eabihf, thumb-linux-musleabi, thumb-linux-musleabihf, thumb-windows-gnu, thumbeb-linux-musleabi, thumbeb-linux-musleabihf, aarch64-freebsd-none, aarch64-linux-gnu, aarch64-linux-musl, aarch64-maccatalyst-none, aarch64-macos-none, aarch64-netbsd-none, aarch64-openbsd-none, aarch64-windows-gnu, aarch64_be-linux-gnu, aarch64_be-linux-musl, aarch64_be-netbsd-none, csky-linux-gnueabi, csky-linux-gnueabihf, hexagon-linux-musl, loongarch64-linux-gnu, loongarch64-linux-gnusf, loongarch64-linux-musl, loongarch64-linux-muslf32, loongarch64-linux-muslsf, m68k-linux-gnu, m68k-linux-musl, m68k-netbsd-none, mips-linux-gnueabi, mips-linux-gnueabihf, mips-linux-musleabi, mips-linux-musleabihf, mips-netbsd-eabi, mips-netbsd-eabihf, mipsel-linux-gnueabi, mipsel-linux-gnueabihf, mipsel-linux-musleabi, mipsel-linux-musleabihf, mipsel-netbsd-eabi, mipsel-netbsd-eabihf, mips64-linux-gnuabi64, mips64-linux-gnuabin32, mips64-linux-muslabi64, mips64-linux-muslabin32, mips64-openbsd-none, mips64el-linux-gnuabi64, mips64el-linux-gnuabin32, mips64el-linux-muslabi64, mips64el-linux-muslabin32, mips64el-openbsd-none, powerpc-linux-musleabi, powerpc-linux-musleabihf, powerpc-netbsd-eabi, powerpc-netbsd-eabihf, powerpc-openbsd-eabihf, powerpc64-freebsd-none, powerpc64-linux-musl, powerpc64-openbsd-none, powerpc64le-freebsd-none, powerpc64le-linux-gnu, powerpc64le-linux-musl, riscv32-linux-gnu, riscv32-linux-musl, riscv64-freebsd-none, riscv64-linux-gnu, riscv64-linux-musl, riscv64-openbsd-none, s390x-linux-gnu, s390x-linux-musl, sparc-linux-gnu, sparc-netbsd-none, sparc64-linux-gnu, sparc64-netbsd-none, sparc64-openbsd-none, wasm32-wasi-musl, x86-freebsd-none, x86-linux-gnu, x86-linux-musl, x86-netbsd-none, x86-openbsd-none, x86-windows-gnu, x86_64-freebsd-none, x86_64-linux-gnu, x86_64-linux-gnux32, x86_64-linux-musl, x86_64-linux-muslx32, x86_64-maccatalyst-none, x86_64-macos-none, x86_64-netbsd-none, x86_64-openbsd-none, x86_64-windows-gnu]
13+
target: [aarch64-windows-gnu, aarch64-linux-musl, aarch64-macos-none, x86_64-windows-gnu, x86_64-linux-musl, x86_64-macos-none, arm-linux-musleabihf, x86-windows-gnu, x86-linux-musl]
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@main
@@ -37,34 +37,16 @@ jobs:
3737
OS="${REST%%-*}"
3838
3939
case "$OS" in
40-
linux) CMAKE_SYSTEM_NAME="Linux" ;;
41-
windows) CMAKE_SYSTEM_NAME="Windows" ;;
42-
macos|maccatalyst) CMAKE_SYSTEM_NAME="Darwin" ;;
43-
freebsd) CMAKE_SYSTEM_NAME="FreeBSD" ;;
44-
netbsd) CMAKE_SYSTEM_NAME="NetBSD" ;;
45-
openbsd) CMAKE_SYSTEM_NAME="OpenBSD" ;;
46-
wasi) CMAKE_SYSTEM_NAME="WASI" ;;
47-
*) CMAKE_SYSTEM_NAME="Generic" ;;
40+
linux) CMAKE_SYSTEM_NAME="Linux" ;;
41+
windows) CMAKE_SYSTEM_NAME="Windows" ;;
42+
macos) CMAKE_SYSTEM_NAME="Darwin" ;;
43+
*) CMAKE_SYSTEM_NAME="Generic" ;;
4844
esac
4945
case "$ARCH" in
5046
x86_64) CMAKE_SYSTEM_PROCESSOR="x86_64" ;;
5147
x86) CMAKE_SYSTEM_PROCESSOR="i686" ;;
52-
aarch64|aarch64_be) CMAKE_SYSTEM_PROCESSOR="aarch64" ;;
53-
arm|armeb|thumb|thumbeb) CMAKE_SYSTEM_PROCESSOR="arm" ;;
54-
riscv32) CMAKE_SYSTEM_PROCESSOR="riscv32" ;;
55-
riscv64) CMAKE_SYSTEM_PROCESSOR="riscv64" ;;
56-
mips|mipsel) CMAKE_SYSTEM_PROCESSOR="mips" ;;
57-
mips64|mips64el) CMAKE_SYSTEM_PROCESSOR="mips64" ;;
58-
powerpc) CMAKE_SYSTEM_PROCESSOR="powerpc" ;;
59-
powerpc64|powerpc64le) CMAKE_SYSTEM_PROCESSOR="powerpc64" ;;
60-
s390x) CMAKE_SYSTEM_PROCESSOR="s390x" ;;
61-
sparc|sparc64) CMAKE_SYSTEM_PROCESSOR="sparc" ;;
62-
m68k) CMAKE_SYSTEM_PROCESSOR="m68k" ;;
63-
loongarch64) CMAKE_SYSTEM_PROCESSOR="loongarch64" ;;
64-
hexagon) CMAKE_SYSTEM_PROCESSOR="hexagon" ;;
65-
csky) CMAKE_SYSTEM_PROCESSOR="csky" ;;
66-
arc) CMAKE_SYSTEM_PROCESSOR="arc" ;;
67-
wasm32) CMAKE_SYSTEM_PROCESSOR="wasm32" ;;
48+
aarch64) CMAKE_SYSTEM_PROCESSOR="aarch64" ;;
49+
arm) CMAKE_SYSTEM_PROCESSOR="arm" ;;
6850
*) CMAKE_SYSTEM_PROCESSOR="$ARCH" ;;
6951
esac
7052
if echo 'int main(){}' | "${TOOLCHAIN}/bin/cc" -x c - -static -o /dev/null 2>/dev/null; then

0 commit comments

Comments
 (0)