From 292d790b57c39e4998fa3c44e36b34116c5247f0 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Tue, 2 Apr 2024 16:31:49 +0200 Subject: [PATCH] check compiler feature detection in loongarch builds --- .github/workflows/loongarch64.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/loongarch64.yml b/.github/workflows/loongarch64.yml index f1bf8064c..05c6c673e 100644 --- a/.github/workflows/loongarch64.yml +++ b/.github/workflows/loongarch64.yml @@ -70,7 +70,16 @@ jobs: echo -n > utest/test_dsdot.c echo "Due to the qemu versions 7.2 causing utest cases to fail," echo "the utest dsdot:dsdot_n_1 have been temporarily disabled." - + - name: Test compiler + run: | + ccache ${{ matrix.triple }}-gcc -static -mabi=lp64d -c cpuid_loongarch64.c -o /dev/null && echo "lp64d supported" + ./c_check mak conf 'ccache ${{ matrix.triple }}-gcc -static' 'ccache ${{ matrix.triple }}-gfortran -static' + - name: 'Upload generated makefile.conf' + uses: actions/upload-artifact@v4 + with: + name: makefile-artifact + path: mak + retention-days: 5 - name: Build OpenBLAS run: make CC='ccache ${{ matrix.triple }}-gcc -static' FC='ccache ${{ matrix.triple }}-gfortran -static' ${{ matrix.opts }} HOSTCC='ccache gcc' -j$(nproc)