From 6b0476ff30d2a0727c9124248dd6b7fd3824b97c Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Fri, 20 Sep 2024 11:33:32 +0200 Subject: [PATCH] gh-actions: add loongarch64 clang-18 test --- .github/workflows/ci.yml | 5 +++++ .../loongarch64-clang-18-ccache.cross | 20 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 docker/cross-files/loongarch64-clang-18-ccache.cross diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e96d7d96c..27f0776ac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -609,6 +609,11 @@ jobs: # arch_gnu: mips64el # arch_gnu_abi: abi64 # distro: ubuntu-24.04 + - version: 18 + cross: loongarch64 + arch_deb: loong64 + arch_gnu: loongarch64 + distro: ubuntu-24.04 runs-on: ${{ matrix.distro }} steps: - uses: actions/checkout@v4 diff --git a/docker/cross-files/loongarch64-clang-18-ccache.cross b/docker/cross-files/loongarch64-clang-18-ccache.cross new file mode 100644 index 000000000..082728339 --- /dev/null +++ b/docker/cross-files/loongarch64-clang-18-ccache.cross @@ -0,0 +1,20 @@ +[binaries] +c = ['ccache', 'clang-18'] +cpp = ['ccache', 'clang++-18'] +ar = 'llvm-ar-18' +strip = 'llvm-strip-18' +objcopy = 'llvm-objcopy-18' +ld = 'llvm-ld-18' +exe_wrapper = ['qemu-loongarch64-static', '-L', '/usr/loongarch64-linux-gnu/', '-cpu', 'la464'] + +[properties] +c_args = ['--target=loongarch64-linux-gnu', '-march=la464', '-isystem=/usr/loongarch64-linux-gnu/include', '-Wextra', '-Werror'] +cpp_args = ['--target=loongarch64-linux-gnu', '-march=la464', '-isystem=/usr/loongarch64-linux-gnu/include', '-Wextra', '-Werror'] +c_link_args = ['--target=loongarch64-linux-gnu'] +cpp_link_args = ['--target=loongarch64-linux-gnu'] + +[host_machine] +system = 'linux' +cpu_family = 'loongarch64' +cpu = 'la464' +endian = 'little'