.github/workflows/windows.yml: fix cufft delay loading #169
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 (Linux) | |
on: | |
push: | |
paths: | |
- 'CMakeLists.txt' | |
- 'cpu_source/*' | |
- 'cuda_source/*' | |
- 'nvrtc_source/*' | |
- '.github/workflows/linux.yml' | |
workflow_dispatch: | |
jobs: | |
build-linux: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Setup Ninja | |
run: pip3 install ninja | |
- name: Setup CUDA | |
run: | | |
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb | |
sudo dpkg -i cuda-keyring_1.0-1_all.deb | |
sudo apt-get update | |
sudo apt-get install -y cuda-nvcc-11-8 cuda-cudart-dev-11-8 cuda-nvrtc-dev-11-8 libcufft-dev-11-8 | |
echo "PATH=/usr/local/cuda/bin${PATH:+:${PATH}}" >> $GITHUB_ENV | |
echo "CUDA_PATH=/usr/local/cuda" >> $GITHUB_ENV | |
echo "LD_LIBRARY_PATH=/usr/local/cuda/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV | |
- name: Download VapourSynth headers | |
run: | | |
wget -q -O vs.zip https://github.com/vapoursynth/vapoursynth/archive/refs/tags/R57.zip | |
unzip -q vs.zip | |
mv vapoursynth*/ vapoursynth | |
- name: Configure | |
run: cmake -S . -B build -G Ninja | |
-D VS_INCLUDE_DIR="`pwd`/vapoursynth/include" | |
-D ENABLE_CUDA=ON | |
-D USE_NVRTC_STATIC=ON | |
-D ENABLE_CPU=ON | |
-D CMAKE_BUILD_TYPE=Release | |
-D CMAKE_CXX_FLAGS="-Wall -ffast-math" | |
- name: Build | |
run: cmake --build build --config Release --verbose | |
- name: Install | |
run: cmake --install build --prefix artifact | |
- name: Upload | |
uses: actions/upload-artifact@v3 | |
with: | |
name: vs-dfttest2-Linux | |
path: artifact |