diff options
| author | Theo Buehler <tb@openbsd.org> | 2025-04-12 17:57:20 +0200 |
|---|---|---|
| committer | Theo Buehler <tb@openbsd.org> | 2025-04-12 17:57:20 +0200 |
| commit | 33537646812ce13f5c6c257a6d44adeae259ef6e (patch) | |
| tree | 6c649e0ab82c74912ba37b7ac9f0988a339d2c22 | |
| parent | fcd8751199b259f7ef9c1c0a296a92bc3075c991 (diff) | |
| parent | 090f7892f7f7280f69289dc5e99ab5ed64908269 (diff) | |
| download | portable-33537646812ce13f5c6c257a6d44adeae259ef6e.tar.gz portable-33537646812ce13f5c6c257a6d44adeae259ef6e.tar.bz2 portable-33537646812ce13f5c6c257a6d44adeae259ef6e.zip | |
Land #1148 - ci: test on loongarch64
| -rw-r--r-- | .github/workflows/linux.yml | 5 | ||||
| -rwxr-xr-x | scripts/test | 15 |
2 files changed, 19 insertions, 1 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index d57e3bc..88dd15e 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml | |||
| @@ -32,12 +32,15 @@ jobs: | |||
| 32 | - os: "ubuntu-24.04" | 32 | - os: "ubuntu-24.04" |
| 33 | arch: "native" | 33 | arch: "native" |
| 34 | compiler: "clang" | 34 | compiler: "clang" |
| 35 | - os: "ubuntu-24.04" # loong64 | ||
| 36 | arch: "loong64" | ||
| 37 | compiler: "gcc" | ||
| 35 | steps: | 38 | steps: |
| 36 | - name: "Checkout repository" | 39 | - name: "Checkout repository" |
| 37 | uses: actions/checkout@v4 | 40 | uses: actions/checkout@v4 |
| 38 | 41 | ||
| 39 | - name: "Run tests" | 42 | - name: "Run tests" |
| 40 | run: ./scripts/test | 43 | run: ./scripts/test || (status=$?; cat tests/test-suite.log; exit $status) |
| 41 | env: | 44 | env: |
| 42 | ARCH: "${{ matrix.arch }}" | 45 | ARCH: "${{ matrix.arch }}" |
| 43 | CC: "${{ matrix.compiler }}" | 46 | CC: "${{ matrix.compiler }}" |
diff --git a/scripts/test b/scripts/test index 1fb02eb..a93fe90 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/lib64/ld-linux-loongarch-lp64d.so.1 /lib64 | ||
| 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 | ||
