CI: Install QEMU 10.2.1 for LoongArch tests

This commit is contained in:
moluopro
2026-08-05 22:31:54 +08:00
parent 0c5fc4552b
commit fbe55b25c9
+14 -2
View File
@@ -51,7 +51,7 @@ jobs:
- name: Install APT deps
run: |
sudo apt-get update && \
sudo apt-get install autoconf automake autotools-dev ninja-build make ccache qemu-user-static \
sudo apt-get install autoconf automake autotools-dev ninja-build make ccache \
gcc-14-loongarch64-linux-gnu g++-14-loongarch64-linux-gnu gfortran-14-loongarch64-linux-gnu
- name: Compilation cache
@@ -70,6 +70,19 @@ jobs:
echo "compression = true" >> ~/.ccache/ccache.conf
ccache -s
- name: Install QEMU 10.2.1
run: |
qemu_deb="${RUNNER_TEMP}/qemu-user_10.2.1+ds-1ubuntu3_amd64.deb"
qemu_root="${RUNNER_TEMP}/qemu-user-10.2.1"
wget --output-document="${qemu_deb}" \
https://archive.ubuntu.com/ubuntu/pool/universe/q/qemu/qemu-user_10.2.1+ds-1ubuntu3_amd64.deb
echo "e6bdaac070232a44b8657cad84ac0853d84b7167b55af82370af040291f55bd8 ${qemu_deb}" \
| sha256sum --check -
dpkg-deb --extract "${qemu_deb}" "${qemu_root}"
sudo install -m 0755 "${qemu_root}/usr/bin/qemu-loongarch64" \
/usr/local/bin/qemu-loongarch64-static
qemu-loongarch64-static --version
- name: Disable utest dsdot:dsdot_n_1
run: |
echo -n > utest/test_dsdot.c
@@ -83,7 +96,6 @@ jobs:
- name: Test
run: |
sudo wget https://gist.github.com/martin-frbg/01de086ee9955966799821db0a4fb1db/raw/4fd13657b44eada4cf8b4a51e43636b9d7b0f42f/qemu-loongarch64 -P /usr/bin -o qemu-loongarch64-static
qemu-loongarch64-static ./utest/openblas_utest
qemu-loongarch64-static ./utest/openblas_utest_ext
OPENBLAS_NUM_THREADS=2 qemu-loongarch64-static ./ctest/xscblat1