small change #261
This file contains hidden or 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: CI | |
| on: [push, pull_request] | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| build-essential \ | |
| cmake \ | |
| libxrandr-dev \ | |
| libxcursor-dev \ | |
| libudev-dev \ | |
| libopenal-dev \ | |
| libflac-dev \ | |
| libvorbis-dev \ | |
| libgl1-mesa-dev \ | |
| libegl1-mesa-dev \ | |
| libxi-dev \ | |
| libfreetype6-dev | |
| wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-ubuntu2404.pin | |
| sudo mv cuda-ubuntu2404.pin /etc/apt/preferences.d/cuda-repository-pin-600 | |
| wget https://developer.download.nvidia.com/compute/cuda/13.0.0/local_installers/cuda-repo-ubuntu2404-13-0-local_13.0.0-580.65.06-1_amd64.deb | |
| sudo dpkg -i cuda-repo-ubuntu2404-13-0-local_13.0.0-580.65.06-1_amd64.deb | |
| sudo cp /var/cuda-repo-ubuntu2404-13-0-local/cuda-*-keyring.gpg /usr/share/keyrings/ | |
| sudo apt-get -y install cuda-toolkit-13-0 | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Configure | |
| run: cmake -B build -DBUILD_SHARED_LIBS=TRUE | |
| - name: Build | |
| run: cmake --build build --config Release | |