From d00a6b901a1c00e614e5c72911d11bf48364225b Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Tue, 24 Oct 2023 15:52:49 +0200 Subject: [PATCH] DO NOT MERGE: focus test builds --- .appveyor.yml | 115 -------- .github/workflows/ci.yml | 547 --------------------------------------- 2 files changed, 662 deletions(-) delete mode 100644 .appveyor.yml diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 35b4c2b5c..000000000 --- a/.appveyor.yml +++ /dev/null @@ -1,115 +0,0 @@ -environment: - MESON_EXE_WRAPPER: "['C:\\Program Files\\OpenCppCoverage\\OpenCppCoverage.exe', '--export_type=cobertura', '--']" - CCACHE_MAXSIZE: '500Mi' - matrix: - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022 - VCVARSALL: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat - PYTHON_DIR: C:\Python311-x64 - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 - VCVARSALL: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat - PYTHON_DIR: C:\Python311-x64 - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - VCVARSALL: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat - PYTHON_DIR: C:\Python38-x64 - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 - VCVARSALL: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat - PYTHON_DIR: C:\Python38-x64 - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022 - VCVARSALL: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat - PYTHON_DIR: C:\Python311-x64 - FLAGS: /arch:AVX - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 - VCVARSALL: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat - PYTHON_DIR: C:\Python311-x64 - FLAGS: /arch:AVX - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - VCVARSALL: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat - PYTHON_DIR: C:\Python38-x64 - FLAGS: /arch:AVX - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 - VCVARSALL: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat - PYTHON_DIR: C:\Python38-x64 - FLAGS: /arch:AVX - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022 - VCVARSALL: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat - PYTHON_DIR: C:\Python311-x64 - FLAGS: /arch:AVX2 - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 - VCVARSALL: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat - PYTHON_DIR: C:\Python311-x64 - FLAGS: /arch:AVX2 - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - VCVARSALL: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat - PYTHON_DIR: C:\Python38-x64 - FLAGS: /arch:AVX2 - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 - VCVARSALL: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat - PYTHON_DIR: C:\Python38-x64 - FLAGS: /arch:AVX2 - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022 - VCVARSALL: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat - PYTHON_DIR: C:\Python311-x64 - FLAGS: /arch:AVX512 - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 - VCVARSALL: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat - PYTHON_DIR: C:\Python311-x64 - FLAGS: /arch:AVX512 - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - VCVARSALL: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat - PYTHON_DIR: C:\Python38-x64 - FLAGS: /arch:AVX512 -branches: - except: - - /^ci/(?!appveyor)(/.+)?/ - -platform: - - x64 -cache: - - '%SystemDrive%\ccache' -init: - - pwsh: | - $Env:APPVEYOR_SAVE_CACHE_ON_ERROR = 'true' -install: - - cmd: set PATH=%PYTHON_DIR%;%PYTHON_DIR%\scripts;%PATH% - - cmd: pip install --upgrade ninja meson - - cmd: choco install opencppcoverage codecov ccache - - cmd: call "%VCVARSALL%" amd64 - -before_build: - - ps: | - git submodule -q update --init --recursive - if ($ENV:FLAGS -notlike "*ARCH*") { - echo "tests will be run" - } else { - echo "FLAGS is $ENV:FLAGS" - } - -build_script: - - cmd: | - set CCACHE_DIR=%SystemDrive%\ccache - set CC=ccache.exe cl.exe - set CXX=ccache.exe cl.exe - ccache.exe --zero-stats - set CFLAGS=/WX /Z7 %FLAGS% - set CXXFLAGS=/WX /Z7 %FLAGS% - meson --backend=ninja build - meson compile -C build --verbose - ccache.exe --show-stats -test_script: - # "meson test -C build" fails due to excessively long command line - - ps: | - if ($ENV:FLAGS -notlike "*ARCH*") { - ninja -C build test - } else { - echo "skipping test" - } - -## This seems to work; data shows up on CodeCov, but it emits an error -## which makes AppVeyor thing the whole build failed. Example: -## https://ci.appveyor.com/project/quixdb/ci-noise/build/job/e7d1wpt9icu77fn2 -# after_test: -# - ps: | -# Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh -# $env:APPVEYOR="true" -# $env:CI="true" -# bash codecov.sh -f "run-testsCoverage.xml" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb476b966..f26623942 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -140,550 +140,3 @@ jobs: uses: codecov/codecov-action@v3 with: file: ./build/meson-logs/coverage.xml - - emscripten: - runs-on: ubuntu-22.04 - strategy: - matrix: - variant: - - "32" - - "64" - steps: - - uses: actions/checkout@v3 - with: - submodules: recursive - - name: CPU Information - run: cat /proc/cpuinfo - - name: Install APT Dependencies - run: | - sudo apt-get update && \ - sudo apt-get install -y ninja-build ninja-build python3-pip parallel gcovr &&\ - sudo python3 -m pip install meson==0.55.0 - - name: Install emscripten - run: | - git clone https://github.com/emscripten-core/emsdk.git /opt/emsdk - cd /opt/emsdk - ./emsdk install 3.1.45 # tot - ./emsdk activate 3.1.45 # tot - source emsdk_env.sh - - name: Install v8 - run: | - sudo npm install jsvu -g - jsvu --os=linux64 --engines=v8 - sudo ln -s "$HOME/.jsvu/bin/v8" /usr/bin/v8 - ls -l /usr/bin/v8 - ls -l ~/.jsvu || true - /usr/bin/v8 --help - - name: Configure - run: meson setup build --optimization 2 --cross-file docker/cross-files/emscripten${{ matrix.variant }}.cross - - name: Build - run: meson compile -C build --verbose - - name: Test - run: meson test -C build --print-errorlogs - - native-aliases: - runs-on: ubuntu-22.04 - env: - CFLAGS: -DSIMDE_ENABLE_NATIVE_ALIASES -DSIMDE_NATIVE_ALIASES_TESTING -Wall -Wextra -Werror - CXXFLAGS: -DSIMDE_ENABLE_NATIVE_ALIASES -DSIMDE_NATIVE_ALIASES_TESTING -Wall -Wextra -Werror - steps: - - uses: actions/checkout@v3 - with: - submodules: recursive - - name: CPU Information - run: cat /proc/cpuinfo - - name: Install APT Dependencies - run: | - sudo apt-get update && \ - sudo apt-get -yq install libxml2-utils ninja-build parallel gcovr && \ - sudo python3 -m pip install meson==0.55.0 - - name: Convert - run: ./test/native-aliases.sh - - name: Configure - run: meson setup build -Db_coverage=true - - name: Build - run: ninja -C build -v - - name: Test - run: ninja -C build -v test - - name: Coverage Report - run: ninja -C build -v coverage-xml - - name: CodeCov.io - uses: codecov/codecov-action@v3 - with: - file: ./build/meson-logs/coverage.xml - - sleef: - runs-on: ubuntu-22.04 - env: - CFLAGS: -march=native -Wall -Wextra -Werror - CXXFLAGS: -march=native -Wall -Wextra -Werror - steps: - - uses: actions/checkout@v3 - with: - submodules: recursive - - run: sudo apt-get update - - name: CPU Information - run: cat /proc/cpuinfo - - name: Install APT Dependencies - run: | - sudo apt-get install -y ninja-build ninja-build parallel gcovr libsleef-dev - sudo python3 -m pip install meson==0.55.0 - - name: Configure - run: meson setup build -Dsleef=enabled -Db_coverage=true - - name: Build - run: ninja -C build -v - - name: Test - run: meson test -C build --print-errorlogs $(meson test -C build --list | grep -v emul) - - name: Coverage Report - run: ninja -C build -v coverage-xml - - name: CodeCov.io - uses: codecov/codecov-action@v3 - with: - file: ./build/meson-logs/coverage.xml - - gcc: - strategy: - fail-fast: false - matrix: - include: - - version: 9 - distro: ubuntu-20.04 - arch_flags: -march=native - - version: 10 - distro: ubuntu-20.04 - arch_flags: -march=native - - version: 10 - distro: ubuntu-20.04 - arch_flags: -ffast-math - ccache: 'true' - - version: 11 - distro: ubuntu-22.04 - arch_flags: -march=native - - version: 11 - distro: ubuntu-22.04 - arch_flags: -ffast-math - ccache: 'true' - - version: 12 - distro: ubuntu-22.04 - arch_flags: -march=native - - version: 12 - distro: ubuntu-22.04 - arch_flags: -ffast-math - ccache: 'true' - - version: 13 - distro: ubuntu-22.04 - arch_flags: -march=native - - version: 13 - distro: ubuntu-22.04 - arch_flags: -ffast-math - ccache: 'true' - runs-on: ${{ matrix.distro }} - env: - CFLAGS: ${{ matrix.arch_flags }} -Wall -Wextra -Werror - CXXFLAGS: ${{ matrix.arch_flags }} -Wall -Wextra -Werror - steps: - - uses: actions/checkout@v3 - with: - submodules: recursive - - name: CPU Information - run: cat /proc/cpuinfo - - name: Install APT Dependencies - run: | - sudo add-apt-repository ppa:ubuntu-toolchain-r/test - sudo apt-get update - sudo apt-get -yq install gcovr python3-pip ninja-build parallel gcc-${{ matrix.version }} g++-${{ matrix.version }} - sudo apt-get -y purge g++ gcc - sudo python3 -m pip install meson==0.55.0 - - name: ccache - uses: hendrikmuhs/ccache-action@v1.2 - if: ${{ matrix.ccache == 'true' }} - with: - key: ${{ github.job }}-${{ matrix.version }}-${{ matrix.distro }}-${{ matrix.arch_flags }} - - name: add ccache to the build path - run: | - export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" - sudo ln -s /usr/bin/gcc-${{ matrix.version }} /usr/bin/gcc - sudo ln -s /usr/bin/g++-${{ matrix.version }} /usr/bin/g++ - - name: Configure - run: meson setup build - - name: Build - run: meson compile -C build --verbose - - name: Test - run: meson test -C build --print-errorlogs $(meson test -C build --list | grep -v emul) - - gcc-qemu: - strategy: - fail-fast: false - matrix: - include: - - version: 12 - cross: armel - arch_gnu_abi: eabi - arch_deb: armel - arch_gnu: arm - distro: ubuntu-22.04 - - version: 12 - cross: armv7 - arch_gnu: arm - arch_gnu_abi: eabihf - arch_deb: armhf - distro: ubuntu-22.04 - - version: 12 - cross: aarch64 - arch_gnu: aarch64 - arch_deb: arm64 - distro: ubuntu-22.04 - - version: 12 - cross: riscv64 - arch_gnu: riscv64 - arch_deb: riscv64 - distro: ubuntu-22.04 - - version: 12 - cross: s390x - arch_gnu: s390x - arch_deb: s390x - distro: ubuntu-22.04 - - version: 12 - cross: power9 - arch_gnu: powerpc64le - arch_deb: ppc64el - distro: ubuntu-22.04 - runs-on: ${{ matrix.distro }} - steps: - - uses: actions/checkout@v3 - with: - submodules: recursive - - run: sudo apt-get update - - name: CPU Information - run: cat /proc/cpuinfo - - name: Install APT Dependencies - run: | - sudo add-apt-repository ppa:savoury1/virtualisation - sudo apt-get update -y - sudo apt-get -yq install ninja-build parallel \ - gcc-${{ matrix.version }}-${{ matrix.arch_gnu }}-linux-gnu${{ matrix.arch_gnu_abi }} \ - g++-${{ matrix.version }}-${{ matrix.arch_gnu }}-linux-gnu${{ matrix.arch_gnu_abi }} binfmt-support \ - qemu-user-static python3-pip libc6-${{ matrix.arch_deb }}-cross libstdc++-${{ matrix.version }}-dev-${{ matrix.arch_deb }}-cross - sudo python3 -m pip install meson==0.55.0 - - name: ccache - uses: hendrikmuhs/ccache-action@v1.2 - with: - key: ${{ github.job }}-${{ matrix.distro }}-${{ matrix.cross }} - - name: add ccache to the build path - run: | - export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" - - name: Configure - run: meson setup --cross-file=docker/cross-files/${{ matrix.cross }}-gcc-${{ matrix.version }}-ccache.cross build - - name: Build - run: ninja -C build -v - - name: Test - run: meson test -C build --print-errorlogs --print-errorlogs $(meson test -C build --list | grep -v emul) - - clang-qemu: - strategy: - fail-fast: false - matrix: - include: - - version: 16 - cross: armv7 - arch_deb: armhf - arch_gnu_abi: eabihf - arch_gnu: arm - distro: ubuntu-22.04 - - version: 16 - cross: aarch64 - arch_gnu: aarch64 - arch_deb: arm64 - distro: ubuntu-22.04 - - version: 16 - cross: armel - arch_gnu_abi: eabi - arch_deb: armel - arch_gnu: arm - distro: ubuntu-22.04 - - version: 16 - cross: riscv64 - arch_gnu: riscv64 - arch_deb: riscv64 - distro: ubuntu-22.04 - # - version: 16 - # cross: s390x - # arch_gnu: s390x - # arch_deb: s390x - # distro: ubuntu-22.04 - - version: 16 - cross: ppc64el - arch_deb: ppc64el - arch_gnu: powerpc64le - distro: ubuntu-22.04 - runs-on: ${{ matrix.distro }} - steps: - - uses: actions/checkout@v3 - with: - submodules: recursive - - run: sudo apt-get update - - name: CPU Information - run: cat /proc/cpuinfo - - name: Install APT Dependencies - run: | - sudo add-apt-repository ppa:savoury1/virtualisation - sudo add-apt-repository ppa:savoury1/display - sudo apt-get update -y - sudo apt-get -yq install ninja-build parallel \ - binfmt-support clang-${{ matrix.version }} clang++-${{ matrix.version }} \ - qemu-user-static python3-pip libc6-${{ matrix.arch_deb }}-cross libstdc++-12-dev-${{ matrix.arch_deb }}-cross \ - binutils-${{ matrix.arch_gnu }}-linux-gnu${{ matrix.arch_gnu_abi }} - sudo python3 -m pip install meson==0.55.0 - - name: ccache - uses: hendrikmuhs/ccache-action@v1.2 - with: - key: ${{ github.job }}-${{ matrix.distro }}-${{ matrix.cross }} - - name: add ccache to the build path - run: | - export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" - - name: Configure - run: | - meson setup --cross-file=docker/cross-files/${{ matrix.cross }}-clang-${{ matrix.version }}-ccache.cross build \ - || (cat build/meson-logs/meson-log.txt ; false) - - name: Build - run: ninja -C build -v - - name: Test - run: meson test -C build --print-errorlogs --print-errorlogs $(meson test -C build --list | grep -v emul) - - clang: - strategy: - fail-fast: false - matrix: - include: - - version: "7" - distro: ubuntu-20.04 - arch_flags: -march=native - # clang-8 is tested on Semaphore-CI https://nemequ.semaphoreci.com/projects/simde - - version: "9" - distro: ubuntu-20.04 - arch_flags: -march=native - # clang-10 is tested on Semaphore-CI https://nemequ.semaphoreci.com/projects/simde - - version: "11" - distro: ubuntu-22.04 - arch_flags: -march=native - - version: "12" - distro: ubuntu-20.04 - arch_flags: -march=native - - version: "12" - distro: ubuntu-20.04 - arch_flags: -ffast-math - ccache: 'true' - - version: "13" - distro: ubuntu-22.04 - arch_flags: -march=native - - version: "13" - distro: ubuntu-22.04 - arch_flags: -ffast-math - ccache: 'true' - - version: "14" - distro: ubuntu-22.04 - arch_flags: -march=native - - version: "14" - distro: ubuntu-22.04 - arch_flags: -ffast-math - ccache: 'true' - - version: "15" - distro: ubuntu-22.04 - arch_flags: -march=native - - version: "15" - distro: ubuntu-22.04 - arch_flags: -ffast-math - ccache: 'true' - - version: "16" - distro: ubuntu-22.04 - arch_flags: -march=native -Wno-unsafe-buffer-usage - - version: "16" - distro: ubuntu-22.04 - arch_flags: -ffast-math -Wno-unsafe-buffer-usage - ccache: 'true' - runs-on: ${{ matrix.distro }} - env: - CFLAGS: ${{ matrix.arch_flags }} -Wall -Weverything -Werror -fno-lax-vector-conversions - CXXFLAGS: ${{ matrix.arch_flags }} -Wall -Weverything -Werror -fno-lax-vector-conversions - steps: - - uses: actions/checkout@v3 - with: - submodules: recursive - - name: CPU Information - run: cat /proc/cpuinfo - - name: Install APT Dependencies - run: | - sudo add-apt-repository ppa:ubuntu-toolchain-r/test - sudo add-apt-repository ppa:savoury1/display - sudo apt-get update - sudo apt-get -yq install gcovr ninja-build python3-pip clang-${{ matrix.version }} - sudo python3 -m pip install meson==0.55.0 - sudo rm /usr/bin/gcc /usr/bin/g++ /usr/bin/cc /usr/bin/c++ - sudo ln -s $(command -v clang-${{ matrix.version }}) /usr/bin/cc - sudo ln -s $(command -v clang-${{ matrix.version }}) /usr/bin/c++ - - name: ccache - uses: hendrikmuhs/ccache-action@v1.2 - if: ${{ matrix.ccache == 'true' }} - with: - key: ${{ github.job }}-${{ matrix.version }}-${{ matrix.distro }}-${{ matrix.arch_flags }} - - name: add ccache to the build path - if: ${{ matrix.ccache == 'true' }} - run: | - export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" - - name: Configure - run: meson setup build - - name: Build - run: meson compile -C build --verbose - - name: Test - run: meson test -C build --print-errorlogs $(meson test -C build --list | grep -v emul) - - macos: - strategy: - fail-fast: false - matrix: - # https://www.jessesquires.com/blog/2020/01/06/selecting-an-xcode-version-on-github-ci/ - # https://github.com/actions/runner-images/blob/main/images/macos/macos-11-Readme.md#xcode - # https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md#xcode - # https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md#xcode - # https://trac.macports.org/wiki/XcodeVersionInfo - include: - - xcode: "11.7" - os: macos-11 - - xcode: "12.4" - os: macos-11 - - xcode: "12.5.1" - os: macos-11 - - xcode: "13.1" - os: macos-12 - - xcode: "13.3.1" - os: macos-12 - - xcode: "13.4.1" - os: macos-12 - - xcode: "14.2" - os: macos-13 - runs-on: ${{ matrix.os }} - env: - DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app - steps: - - uses: actions/checkout@v3 - with: - submodules: recursive - # - name: System Information - # run: system_profiler - - name: Compiler version - run: cc --version - - name: ccache - uses: hendrikmuhs/ccache-action@v1.2 - with: - key: ${{ github.job }}-${{ matrix.xcode }} - - name: Python install bug workaround # https://github.com/actions/setup-python/issues/577 - run: | - find /usr/local/bin -type l -exec sh -c 'readlink -f "$1" \ - | grep -q ^/Library/Frameworks/Python.framework/Versions/' _ {} \; -exec rm -v {} \; - - name: Install Homebrew Dependencies - run: brew install meson ninja gcovr - - name: Configure - run: meson setup build -Db_coverage=true - - name: Build - run: ninja -C build -v - - name: Test - run: meson test -C build --print-errorlogs $(meson test -C build --list | grep -v emul) - - name: Coverage Report - run: ninja -C build -v coverage-xml - - name: CodeCov.io - uses: codecov/codecov-action@v3 - with: - file: ./build/meson-logs/coverage.xml - - icc: - runs-on: ubuntu-22.04 - env: - CC: /home/runner/.local/bin/icx - CXX: /home/runner/.local/bin/icpx - CFLAGS: -Wall -Werror -march=native -fp-model precise - CXXFLAGS: -Wall -Werror -march=native -fp-model precise - steps: - - uses: actions/checkout@v3 - - name: CPU Information - run: cat /proc/cpuinfo - - name: Install APT Dependencies - run: sudo apt-get install -y ninja-build python3-pip && sudo pip install meson==0.64 - - name: Install ICC - run: | - # download the key to system keyring - wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \ - | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null - # add signed entry to apt sources and configure the APT client to use Intel repository: - echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list - sudo apt-get update - sudo apt-get install -y intel-oneapi-compiler-dpcpp-cpp - mkdir -p ~/.local/bin/ || true - for exe in icx icpx; do - printf '#!/bin/bash\nARGS="$@"\nsource /opt/intel/oneapi/compiler/latest/env/vars.sh >/dev/null\n%s ${ARGS}\n' "${exe}" > ~/.local/bin/"${exe}" - chmod 0755 ~/.local/bin/"${exe}"; - done - - name: Configure - run: meson setup build - - name: Build - run: ninja -C build -v - - name: Test - run: meson test -C build --print-errorlogs $(meson test -C build --list | grep -v emul) - - msvc-arm64: - name: Windows MSVC-AArch64 - runs-on: [windows-latest] - env: - CFLAGS: /WX /Z7 - CXXFLAGS: /WX /Z7 - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - submodules: recursive - - name: Install Meson, Ninja and coverage - run: | - python3 -m pip install --upgrade ninja meson - choco install opencppcoverage codecov - - name: Use ARM64 Developer Command Prompt - uses: ilammy/msvc-dev-cmd@v1 - with: - arch: amd64_arm64 - - name: Configure and Build - run: | - meson --backend=ninja build --cross-file test/arm64cl.txt - ninja -C build test - - linux-gcc-loongarch64: - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v3 - - name: CPU Information - run: cat /proc/cpuinfo - - name: Install APT Dependencies - run: | - sudo add-apt-repository ppa:savoury1/virtualisation - sudo apt-get install -y ninja-build ninja-build meson qemu-user-static - - name: Download and install loongarch64-toolchain - run: | - wget https://github.com/loongson/build-tools/releases/download/2022.09.06/loongarch64-clfs-7.3-cross-tools-gcc-glibc.tar.xz - tar -xf loongarch64-clfs-7.3-cross-tools-gcc-glibc.tar.xz -C /opt - - name: ccache - uses: hendrikmuhs/ccache-action@v1.2 - with: - key: ${{ github.job }}-loongarch64-gcc-13 - - name: set env - run: | - echo "LD_LIBRARY_PATH=/opt/cross-tools/target/usr/lib64:/opt/cross-tools/loongarch64-unknown-linux-gnu/lib64:$LD_LIBRARY_PATH" >> $GITHUB_ENV - echo "PATH=$GITHUB_WORKSPACE:/opt/cross-tools/bin:$PATH" >> $GITHUB_ENV - - name: Disable SVML tests - run: | - sed -i "/svml/d" test/x86/meson.build - rm test/x86/svml.c - echo "Due to the qemu versions 7.2 through 8.0 causing timeouts in four sets of test cases," - echo "the SVML tests have been temporarily disabled." - - name: Configure - run: meson setup build --cross-file=docker/cross-files/loongarch64-gcc-13-ccache.cross - - name: Build - run: meson compile -C build -v - - name: Test - run: meson test -C build --print-errorlogs