check compiler feature detection in loongarch builds

This commit is contained in:
Martin Kroeker 2024-04-02 16:31:49 +02:00 committed by GitHub
parent 29995b2969
commit 292d790b57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 1 deletions

View File

@ -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)