Skip to content

Commit

Permalink
Merge branch 'next' of https://github.com/LuisaGroup/LuisaRender into…
Browse files Browse the repository at this point in the history
… next
  • Loading branch information
Mike-Leo-Smith committed Jan 25, 2025
2 parents 64d93f9 + 582401f commit 77ebf10
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-22.04 ]
os: [ ubuntu-24.04, ubuntu-24.04-arm, ubuntu-22.04 ]
compiler:
- { name: gcc, version: 11 }
# - { name: gcc, version: 12 }
Expand Down Expand Up @@ -41,12 +41,23 @@ jobs:
sudo apt-get update
sudo apt-get -y install build-essential cmake ninja-build uuid-dev libxinerama-dev libxcursor-dev libxi-dev libvulkan-dev libxkbcommon-dev
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: "Download CUDA Keyring (ubuntu-24.04)"
if: matrix.os == 'ubuntu-24.04'
run: |
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb
- name: "Download CUDA Keyring (ubuntu-24.04-arm)"
if: matrix.os == 'ubuntu-24.04-arm'
run: |
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/sbsa/cuda-keyring_1.1-1_all.deb
- name: "Download CUDA Keyring (ubuntu-22.04)"
if: matrix.os == 'ubuntu-22.04'
run: |
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
- 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 dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update
sudo apt-get -y install cuda-12.1
sudo apt-get -y install cuda-12.8
- name: "Setup Vulkan SDK"
uses: humbletim/[email protected]
with:
Expand All @@ -64,15 +75,15 @@ jobs:
export LUISA_CXX=clang++-${{ matrix.compiler.version }}
export LUISA_FLAGS="-stdlib=libc++"
fi
cmake -S . -B build -G Ninja -D CMAKE_BUILD_TYPE=${{ matrix.config }} -D CMAKE_C_COMPILER=${LUISA_CC} -D CMAKE_CXX_COMPILER=${LUISA_CXX} -D CMAKE_CXX_FLAGS="${LUISA_FLAGS}"
cmake -S . -B build -G Ninja -D CMAKE_BUILD_TYPE=${{ matrix.config }} -D CMAKE_C_COMPILER=${LUISA_CC} -D CMAKE_CXX_COMPILER=${LUISA_CXX} -D CMAKE_CXX_FLAGS="${LUISA_FLAGS}" -D CMAKE_DISABLE_PRECOMPILE_HEADERS=ON
cmake --build build
- name: "Install"
if: matrix.config == 'Release'
run: |
sudo cmake --install build --prefix dist -v
- name: "Upload Artifact"
if: matrix.config == 'Release'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: "dist/bin"
name: LuisaRender-${{ matrix.os }}-${{ matrix.compiler.name }}-${{ matrix.compiler.version }}
Expand All @@ -81,7 +92,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ macos-13, macos-14 ]
os: [ macos-13, macos-14, macos-15 ]
compiler: [ homebrew-clang ]
config: [ Release, Debug ]
name: "${{ matrix.os }} / ${{ matrix.config }} / ${{ matrix.compiler }}"
Expand Down Expand Up @@ -110,7 +121,7 @@ jobs:
sudo cmake --install build --prefix dist -v
- name: "Upload Artifact"
if: matrix.config == 'Release'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: "dist/bin"
name: LuisaRender-${{ matrix.os }}-${{ matrix.compiler }}
Expand All @@ -129,7 +140,7 @@ jobs:
with:
submodules: recursive
- name: "Setup CUDA"
uses: Jimver/cuda-toolkit@v0.2.19
uses: Jimver/cuda-toolkit@master
with:
cuda: 12.1.0
- name: "Setup Ninja"
Expand Down Expand Up @@ -158,7 +169,7 @@ jobs:
cmake --install build --prefix dist -v
- name: "Upload Artifact"
if: matrix.config == 'Release'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: "dist/bin"
name: LuisaRender-windows-${{ matrix.os }}-${{ matrix.compiler }}

0 comments on commit 77ebf10

Please sign in to comment.