diff options
| -rw-r--r-- | .github/workflows/linux.yml | 2 | ||||
| -rwxr-xr-x | scripts/test | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index d57e3bc..bc3c692 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml | |||
| @@ -23,7 +23,7 @@ jobs: | |||
| 23 | fail-fast: false | 23 | fail-fast: false |
| 24 | matrix: | 24 | matrix: |
| 25 | os: ["ubuntu-22.04", "ubuntu-24.04"] | 25 | os: ["ubuntu-22.04", "ubuntu-24.04"] |
| 26 | arch: ["native", "arm32", "arm64", "mingw32", "mingw64", "mips64"] | 26 | arch: ["native", "arm32", "arm64", "loong64", "mingw32", "mingw64", "mips64"] |
| 27 | compiler: ["gcc"] | 27 | compiler: ["gcc"] |
| 28 | include: | 28 | include: |
| 29 | - os: "ubuntu-22.04" | 29 | - os: "ubuntu-22.04" |
diff --git a/scripts/test b/scripts/test index 1fb02eb..473d689 100755 --- a/scripts/test +++ b/scripts/test | |||
| @@ -132,6 +132,21 @@ elif [ "$ARCH" = "arm32" -o "$ARCH" = "arm64" ]; then | |||
| 132 | 132 | ||
| 133 | file apps/openssl/.libs/openssl | 133 | file apps/openssl/.libs/openssl |
| 134 | 134 | ||
| 135 | elif [ "$ARCH" = "loong64" ]; then | ||
| 136 | sudo apt install -y qemu-user-static binfmt-support g++-14-loongarch64-linux-gnu | ||
| 137 | sudo ln -sf /usr/loongarch64-linux-gnu/lib/ld-linux-loongarch-lp64d.so.1 /lib | ||
| 138 | |||
| 139 | CC=loongarch64-linux-gnu-gcc-14 | ||
| 140 | CXX=loongarch64-linux-gnu++-14 | ||
| 141 | AR=loongarch64-linux-gnu-ar | ||
| 142 | STRIP=loongarch64-linux-gnu-strip-14 | ||
| 143 | RANLIB=loongarch64-linux-gnu-ranlib | ||
| 144 | |||
| 145 | ./configure --host=loongarch64-linux-gnu | ||
| 146 | LD_LIBRARY_PATH=/usr/loongarch64-linux-gnu/lib make -j 4 check | ||
| 147 | |||
| 148 | file apps/openssl/openssl | ||
| 149 | |||
| 135 | elif [ "$ARCH" = "mips32" -o "$ARCH" = "mips64" ]; then | 150 | elif [ "$ARCH" = "mips32" -o "$ARCH" = "mips64" ]; then |
| 136 | sudo apt-get install -y qemu-user-static binfmt-support | 151 | sudo apt-get install -y qemu-user-static binfmt-support |
| 137 | 152 | ||
