Disable Gaia and Tensorflow algorithms if libraries are not available. #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build with CMake | |
on: [push, pull_request] | |
env: | |
# CMake build type (Debug, Release, RelWithDebInfo or MinSizeRel) | |
BUILD_TYPE: Release | |
jobs: | |
ubuntu: | |
if: false | |
name: Ubuntu (build and test) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Install dependencies | |
run: sudo apt-get install -y libeigen3-dev libyaml-dev libfftw3-dev libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libsamplerate0-dev libtag1-dev libchromaprint-dev | |
- name: Configure | |
run: cmake -B build | |
- name: Build | |
run: cmake --build build --config ${{env.BUILD_TYPE}} | |
- name: Test | |
run: ctest --test-dir build --output-on-failure -C ${{env.BUILD_TYPE}} | |
macos: | |
if: false | |
name: MacOS (build and test) | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- name: Install dependencies | |
run: brew install cmake eigen libyaml fftw ffmpeg libsamplerate libtag chromaprint | |
- name: Configure | |
run: cmake -B build | |
- name: Build | |
run: cmake --build build --config ${{env.BUILD_TYPE}} | |
- name: Test | |
run: ctest --test-dir build --output-on-failure -C ${{env.BUILD_TYPE}} | |
windows: | |
name: Windows (build and test) | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: cmd | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
# We install Python manually, because actions/setup-python doesn't install the debug binaries. | |
# https://github.com/actions/setup-python/issues/86 | |
# https://github.com/actions/runner-images/issues/786#issuecomment-620524456 | |
- name: Install Python 3.12.4 (x64) | |
run: | | |
cd packaging | |
curl -L -o python-3.12.4-amd64.exe https://www.python.org/ftp/python/3.12.4/python-3.12.4-amd64.exe | |
Start-Process -FilePath python-3.12.4-amd64.exe -ArgumentList "/quiet Include_debug=1 Include_dev=1 Include_lib=1 Include_pip=1 PrependPath=1 CompileAll=1 InstallAllUsers=0" -Verb runas -Wait | |
shell: pwsh | |
- name: Install numpy | |
run: C:/Users/runneradmin/AppData/Local/Programs/Python/Python312/python.exe -m pip install numpy==1.26.4 | |
- name: Install dependencies | |
run: .\packaging\build-dependencies-msvc.bat | |
- name: Configure | |
run: cmake -B build -DBUILD_PYTHON_BINDINGS=ON -DENABLE_STATIC_DEPENDENCIES=ON -DCMAKE_PREFIX_PATH=%CD%\packaging\msvc | |
- name: Build | |
run: | | |
set PATH=%PATH%;%CD%\packaging\msvc\bin | |
cmake --build build --config ${{env.BUILD_TYPE}} --parallel | |
- name: Test | |
run: | | |
set PATH=%PATH%;%CD%\packaging\msvc\bin | |
ctest --test-dir build --output-on-failure -C ${{env.BUILD_TYPE}} | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: essentia-2.1b6.dev0-cp312-win64 | |
path: build/wheel |