Skip to content

.github/workflows/windows-trt.yml: update to tensorrt 11.1.0 and cuda… #55

.github/workflows/windows-trt.yml: update to tensorrt 11.1.0 and cuda…

.github/workflows/windows-trt.yml: update to tensorrt 11.1.0 and cuda… #55

Workflow file for this run

name: Build (Linux-TRT-RTX)
on:
push:
paths:
- 'vstrt/**'
- '.github/workflows/linux-trt-rtx.yml'
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-24.04
defaults:
run:
working-directory: vstrt
steps:
- name: Checkout repo
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Ninja
run: pip install ninja --break-system-packages
- 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: Setup CUDA
run: |
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update
sudo apt-get install -y --no-install-recommends cuda-nvcc-13-1 cuda-cudart-dev-13-1
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 TensorRT-RTX
run: |
curl -L -o trt.tar.gz https://developer.nvidia.com/downloads/trt/rtx_sdk/secure/1.3/TensorRT-RTX-1.3.0.35-Linux-x86_64-cuda-13.1-Release-external.tar.gz
tar -xzf trt.tar.gz --verbose
mv TensorRT-RTX-*/ tensorrt/
- name: Configure
run: cmake -S . -B build -G Ninja -LA
-D CMAKE_BUILD_TYPE=Release
-D VAPOURSYNTH_INCLUDE_DIRECTORY="`pwd`/vapoursynth/include"
-D CMAKE_CXX_FLAGS="-Wall -ffast-math -march=x86-64-v3"
-D TENSORRT_HOME="$(pwd)\tensorrt"
- name: Build
run: cmake --build build --verbose
- name: Install
run: cmake --install build --prefix install
- name: Prepare for upload
run: |
mkdir artifact
cp -v install/lib/*.so artifact
- name: Describe
run: git describe --tags --long
- name: Upload
uses: actions/upload-artifact@v6
with:
name: VSTRT-RTX-Linux-x64
path: vstrt/artifact
overwrite: true