Skip to content

Commit c9aab9c

Browse files
committed
Copilot setup adapted for Linux
1 parent ad0a653 commit c9aab9c

1 file changed

Lines changed: 31 additions & 12 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,42 @@ jobs:
3636
submodules: recursive
3737

3838
- name: Unshallow vcpkg submodule
39-
shell: pwsh
4039
run: |
4140
cd external/vcpkg
42-
git fetch --unshallow 2>$null; if (-not $?) { Write-Host "Already unshallowed or fetch failed (continuing)" }
43-
exit 0
41+
git fetch --unshallow || true
42+
cd ../..
4443
44+
- name: Install Packages
45+
run: |
46+
sudo apt-get update -qq
47+
sudo apt-get install -y --no-install-recommends libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libxext-dev libxfixes-dev libgl1-mesa-dev libglu-dev
48+
49+
- name: Install CUDA (via NVIDIA's repo)
50+
run: |
51+
sudo apt-get update
52+
sudo apt-get install -y gnupg software-properties-common wget
53+
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb
54+
sudo dpkg -i cuda-keyring_1.1-1_all.deb
55+
sudo apt-get update
56+
sudo apt-get install -y cuda-compiler-13-0
57+
58+
- name: Add CUDA to PATH
59+
run: |
60+
echo "/usr/local/cuda/bin" >> $GITHUB_PATH
61+
echo "LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH" >> $GITHUB_ENV
62+
4563
- name: Bootstrap vcpkg
46-
shell: pwsh
4764
run: |
48-
Push-Location external/vcpkg
49-
.\bootstrap-vcpkg.bat -disableMetrics
50-
Pop-Location
65+
pushd external/vcpkg
66+
./bootstrap-vcpkg.sh -disableMetrics
67+
popd
5168
52-
- name: Configure CMake
53-
shell: pwsh
54-
run: cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE="external\vcpkg\scripts\buildsystems\vcpkg.cmake" -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_CUDA_COMPILER=nvcc
69+
- name: Configure CMake (mit vcpkg Manifest-Mode)
70+
run: >
71+
cmake -S . -B build
72+
-DCMAKE_TOOLCHAIN_FILE=external/vcpkg/scripts/buildsystems/vcpkg.cmake
73+
-DCMAKE_BUILD_TYPE=Release
74+
-DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc
5575
5676
- name: Build
57-
shell: pwsh
58-
run: cmake --build build -j32
77+
run: cmake --build build -j32

0 commit comments

Comments
 (0)