diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index df9536d..0000000 --- a/.appveyor.yml +++ /dev/null @@ -1,36 +0,0 @@ -build: false - -os: Visual Studio 2015 - -platform: -- x64 - -environment: - MINICONDA: C:\xtensor-conda - -init: -- ECHO %MINICONDA% -- C:\"Program Files (x86)"\"Microsoft Visual Studio 14.0"\VC\vcvarsall.bat %PLATFORM% -- ps: if($env:Platform -eq "x64"){Start-FileDownload 'http://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86_64.exe' C:\Miniconda.exe; echo "Done"} -- ps: if($env:Platform -eq "x86"){Start-FileDownload 'http://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86.exe' C:\Miniconda.exe; echo "Done"} -- cmd: C:\Miniconda.exe /S /D=C:\xtensor-conda -- set PATH=%MINICONDA%;%MINICONDA%\Scripts;%MINICONDA%\Library\bin;%MINICONDA%\Library\mingw-w64\bin;%PATH% - -install: -- conda config --set always_yes yes --set changeps1 no -- conda update -q conda -- conda info -a -- conda install cmake -c conda-forge -- conda install xtensor=0.24.0 -c conda-forge -- conda install m2w64-openblas -c msys2 - # Patch OpenBLASConfig.cmake -- ps: (Get-Content $Env:MINICONDA\Library\mingw-w64\lib\cmake\openblas\OpenBLASConfig.cmake).replace('mingw64', 'mingw-w64') | Set-Content $Env:MINICONDA\Library\mingw-w64\lib\cmake\openblas\OpenBLASConfig.cmake -- ps: (Get-Content $Env:MINICONDA\Library\mingw-w64\lib\cmake\openblas\OpenBLASConfig.cmake).replace('mingw32', 'mingw-w64') | Set-Content $Env:MINICONDA\Library\mingw-w64\lib\cmake\openblas\OpenBLASConfig.cmake -- ps: (Get-Content $Env:MINICONDA\Library\mingw-w64\lib\cmake\openblas\OpenBLASConfig.cmake).replace('bin', 'lib') | Set-Content $Env:MINICONDA\Library\mingw-w64\lib\cmake\openblas\OpenBLASConfig.cmake -- ps: (Get-Content $Env:MINICONDA\Library\mingw-w64\lib\cmake\openblas\OpenBLASConfig.cmake).replace('dll', 'dll.a') | Set-Content $Env:MINICONDA\Library\mingw-w64\lib\cmake\openblas\OpenBLASConfig.cmake -- cmake -G "NMake Makefiles" -DOpenBLAS_DIR=%MINICONDA%\Library\mingw-w64\lib\cmake\openblas -DCMAKE_INSTALL_PREFIX=%MINICONDA%\Library -DBUILD_TESTS=ON -DDOWNLOAD_GTEST=ON . -- nmake test_xtensor_blas -- cd test - -build_script: -- .\test_xtensor_blas diff --git a/.azure-pipelines/azure-pipelines-linux-clang.yml b/.azure-pipelines/azure-pipelines-linux-clang.yml deleted file mode 100644 index 04fe7ab..0000000 --- a/.azure-pipelines/azure-pipelines-linux-clang.yml +++ /dev/null @@ -1,45 +0,0 @@ -jobs: -- job: Linux_0 - strategy: - matrix: - clang_6: - llvm_version: '6.0' - blas: OpenBLAS - clang_7: - llvm_version: '7' - blas: OpenBLAS - clang_8: - llvm_version: '8' - blas: OpenBLAS - clang_9: - llvm_version: '9' - blas: OpenBLAS - clang_10: - llvm_version: '10' - blas: OpenBLAS - pool: - vmImage: ubuntu-18.04 - variables: - CC: clang-$(llvm_version) - CXX: clang++-$(llvm_version) - timeoutInMinutes: 360 - steps: - - - script: | - sudo add-apt-repository ppa:ubuntu-toolchain-r/test - if [[ $(llvm_version) == '4.0' || $(llvm_version) == '5.0' ]]; then - sudo apt-get update - sudo apt-get --no-install-suggests --no-install-recommends install gcc-4.9 clang-$(llvm_version) - else - LLVM_VERSION=$(llvm_version) - get -O - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - - sudo add-apt-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-$LLVM_VERSION main" - sudo apt-get update - sudo apt-get --no-install-suggests --no-install-recommends install clang-$(llvm_version) - fi - displayName: Install build toolchain - - - bash: echo "##vso[task.prependpath]$CONDA/bin" - displayName: Add conda to PATH - - - template: unix-build.yml diff --git a/.azure-pipelines/azure-pipelines-linux-gcc.yml b/.azure-pipelines/azure-pipelines-linux-gcc.yml deleted file mode 100644 index 8cf2f95..0000000 --- a/.azure-pipelines/azure-pipelines-linux-gcc.yml +++ /dev/null @@ -1,52 +0,0 @@ -jobs: -- job: Linux_1 - strategy: - matrix: - gcc_6_OpenBLAS: - gcc_version: '6' - blas: OpenBLAS - gcc_6_bound_checks: - gcc_version: '6' - blas: OpenBLAS - bound_checks: 1 - gcc_7_OpenBLAS: - gcc_version: '7' - blas: OpenBLAS - gcc_8_OpenBLAS: - gcc_version: '8' - blas: OpenBLAS - gcc_9_OpenBLAS: - gcc_version: '9' - blas: OpenBLAS - gcc_6_mkl: - gcc_version: '6' - blas: mkl - gcc_7_mkl: - gcc_version: '7' - blas: mkl - gcc_8_mkl: - gcc_version: '8' - blas: mkl - gcc_9_mkl: - gcc_version: '9' - blas: mkl - pool: - vmImage: ubuntu-18.04 - variables: - CC: gcc-$(gcc_version) - CXX: g++-$(gcc_version) - timeoutInMinutes: 360 - steps: - - - script: | - if [[ $(gcc_version) == '4.9' || $(gcc_version) == '6' || $(gcc_version) == '7' || $(gcc_version) == '8' ]]; then - sudo add-apt-repository ppa:ubuntu-toolchain-r/test - sudo apt-get update - sudo apt-get --no-install-suggests --no-install-recommends install g++-$(gcc_version) - fi - displayName: Install build toolchain - - - bash: echo "##vso[task.prependpath]$CONDA/bin" - displayName: Add conda to PATH - - - template: unix-build.yml diff --git a/.azure-pipelines/azure-pipelines-osx.yml b/.azure-pipelines/azure-pipelines-osx.yml deleted file mode 100644 index 1396b25..0000000 --- a/.azure-pipelines/azure-pipelines-osx.yml +++ /dev/null @@ -1,28 +0,0 @@ -jobs: -- job: OSX - strategy: - matrix: - macOS_10_14: - image_name: macOS-11 - blas: mkl - macOS_10_15: - image_name: macOS-12 - blas: mkl - pool: - vmImage: $(image_name) - variables: - CC: clang - CXX: clang++ - timeoutInMinutes: 360 - steps: - - script: | - echo "Removing homebrew for Azure to avoid conflicts with conda" - /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)" - displayName: Remove homebrew - - - bash: | - echo "##vso[task.prependpath]$CONDA/bin" - sudo chown -R $USER $CONDA - displayName: Add conda to PATH - - - template: unix-build.yml diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml deleted file mode 100644 index f98c497..0000000 --- a/.azure-pipelines/azure-pipelines-win.yml +++ /dev/null @@ -1,84 +0,0 @@ -jobs: -- job: Windows_clang - pool: - vmImage: windows-2019 - timeoutInMinutes: 360 - steps: - - # Install Chocolatey (https://chocolatey.org/install#install-with-powershellexe) - - powershell: | - Set-ExecutionPolicy Bypass -Scope Process -Force - iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) - Write-Host "##vso[task.setvariable variable=PATH]$env:PATH" - choco --version - displayName: Install Chocolatey - - # Install Miniconda - - script: | - choco install miniconda3 --yes - set PATH=C:\tools\miniconda3\Scripts;C:\tools\miniconda3;C:\tools\miniconda3\Library\bin;%PATH% - echo '##vso[task.setvariable variable=PATH]%PATH%' - set LIB=C:\tools\miniconda3\Library\lib;%LIB% - echo '##vso[task.setvariable variable=LIB]%LIB%' - conda --version - displayName: Install Miniconda - - # Configure Miniconda - - script: | - conda config --set always_yes yes - conda config --append channels conda-forge - conda info - displayName: Configure Miniconda - - # Create conda enviroment - # Note: conda activate doesn't work here, because it creates a new shell! - - script: | - conda install cmake==3.14.0 ^ - mkl-devel ^ - ninja ^ - xtensor=0.24.3 ^ - python=3.9 - conda list - displayName: Install conda packages - - # Install LLVM - # Note: LLVM distributed by conda is too old - - script: | - choco install llvm --yes - set PATH=C:\Program Files\LLVM\bin;%PATH% - echo '##vso[task.setvariable variable=PATH]%PATH%' - clang-cl --version - displayName: Install LLVM - - # Configure - - script: | - setlocal EnableDelayedExpansion - call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64 - mkdir build & cd build - cmake -G Ninja ^ - -DCMAKE_BUILD_TYPE=Release ^ - -DCMAKE_C_COMPILER=clang-cl ^ - -DCMAKE_CXX_COMPILER=clang-cl ^ - -DBUILD_TESTS=ON ^ - -DDOWNLOAD_GTEST=ON ^ - $(Build.SourcesDirectory) - displayName: Configure xtensor-blas - workingDirectory: $(Build.BinariesDirectory) - - # Build - - script: | - call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64 - cmake --build . ^ - --config Release ^ - --target test_xtensor_blas ^ - -- -v - displayName: Build xtensor-blas - workingDirectory: $(Build.BinariesDirectory)/build - - # Test - - script: | - setlocal EnableDelayedExpansion - cd test - .\test_xtensor_blas - displayName: Test xtensor-blas - workingDirectory: $(Build.BinariesDirectory)/build/test diff --git a/.azure-pipelines/unix-build.yml b/.azure-pipelines/unix-build.yml deleted file mode 100644 index 95b59f9..0000000 --- a/.azure-pipelines/unix-build.yml +++ /dev/null @@ -1,37 +0,0 @@ -steps: -- script: | - conda config --set always_yes yes --set changeps1 no - conda update -q conda - conda env create --file environment-dev.yml - source activate xtensor-blas - echo $(blas) - if [[ $(blas) == 'mkl' ]]; then - conda install mkl - else - conda install openblas==0.3 blas-devel -c conda-forge; - fi - displayName: Install dependencies - -- script: | - source activate xtensor-blas - mkdir build - cd build - if [[ $(bound_checks) == 1 ]]; then - CMAKE_EXTRA_ARGS="$CMAKE_EXTRA_ARGS -DXTENSOR_ENABLE_ASSERT=ON"; - fi - cmake -DDOWNLOAD_GTEST=ON -DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DCMAKE_SYSTEM_IGNORE_PATH=/usr/lib $CMAKE_EXTRA_ARGS $(Build.SourcesDirectory); - displayName: Configure xtensor-blas - workingDirectory: $(Build.BinariesDirectory) - -- script: | - source activate xtensor-blas - make -j2 test_xtensor_blas - displayName: Build xtensor-blas - workingDirectory: $(Build.BinariesDirectory)/build - -- script: | - source activate xtensor-blas - cd test - ./test_xtensor_blas - displayName: Test xtensor-blas - workingDirectory: $(Build.BinariesDirectory)/build/test diff --git a/README.md b/README.md index f4a39f9..2536f6e 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # ![xtensor](docs/source/xtensor-blas.svg) -[![Travis](https://travis-ci.org/xtensor-stack/xtensor-blas.svg?branch=master)](https://travis-ci.org/xtensor-stack/xtensor-blas) -[![Appveyor](https://ci.appveyor.com/api/projects/status/i5c8u3q0uksx0m06?svg=true)](https://ci.appveyor.com/project/xtensor-stack/xtensor-blas) -[![Azure](https://dev.azure.com/xtensor-stack/xtensor-stack/_apis/build/status/xtensor-stack.xtensor-blas?branchName=master)](https://dev.azure.com/xtensor-stack/xtensor-stack/_build/latest?definitionId=5&branchName=master) +[![GHA Linux](https://github.com/xtensor-stack/xtensor-blas/actions/workflows/linux.yml/badge.svg)](https://github.com/xtensor-stack/xtensor-blas/actions/workflows/linux.yml) +[![GHA OSX](https://github.com/xtensor-stack/xtensor-blas/actions/workflows/osx.yml/badge.svg)](https://github.com/xtensor-stack/xtensor-blas/actions/workflows/osx.yml) +[![GHA Windows](https://github.com/xtensor-stack/xtensor-blas/actions/workflows/windows.yml/badge.svg)](https://github.com/xtensor-stack/xtensor-blas/actions/workflows/windows.yml) [![Documentation](http://readthedocs.org/projects/xtensor-blas/badge/?version=latest)](https://xtensor-blas.readthedocs.io/en/latest/?badge=latest) [![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/xtensor-stack/xtensor/stable?filepath=notebooks%2Fxtensor.ipynb) [![Join the Gitter Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/QuantStack/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index b6bd8be..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,8 +0,0 @@ -trigger: -- master - -jobs: - #- template: ./.azure-pipelines/azure-pipelines-win.yml - #- template: ./.azure-pipelines/azure-pipelines-linux-clang.yml - #- template: ./.azure-pipelines/azure-pipelines-linux-gcc.yml - #- template: ./.azure-pipelines/azure-pipelines-osx.yml