update d3dx12.h, update Agility SDK to 1.717.1-preview #5159
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: build-cmake | |
| on: [ push, pull_request ] | |
| jobs: | |
| build-linux: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| compiler: [ gcc, clang ] | |
| config: [ Release, Debug ] | |
| platform: | |
| - os: ubuntu-24.04 | |
| arch: x86_64 | |
| cuda-keyring: x86_64 | |
| jobs: 16 | |
| unity: OFF | |
| - os: ubuntu-24.04-arm | |
| arch: aarch64 | |
| cuda-keyring: sbsa | |
| jobs: 4 | |
| unity: ON | |
| name: ${{ matrix.config }} / ${{ matrix.platform.os }} / ${{ matrix.platform.arch }} / ${{ matrix.compiler }} | |
| runs-on: ${{ matrix.platform.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: "Install Dependencies" | |
| run: | | |
| sudo apt-get update | |
| wget https://apt.llvm.org/llvm.sh | |
| chmod +x llvm.sh | |
| sudo ./llvm.sh 20 all | |
| sudo apt-get -y install build-essential wget cmake ninja-build uuid-dev libxinerama-dev libxcursor-dev libxi-dev libembree-dev libvulkan-dev libembree-dev | |
| - name: "Install CUDA Keyring" | |
| run: | | |
| wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/${{ matrix.platform.cuda-keyring }}/cuda-keyring_1.1-1_all.deb | |
| sudo apt-get -y remove --purge -s '*cuda*' '*nvidia*' | |
| sudo dpkg -i cuda-keyring_1.1-1_all.deb | |
| - name: "Setup CUDA" | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get -y install cuda | |
| sudo apt-get -y clean # save some space | |
| - name: "Setup Vulkan" | |
| uses: johnnynunez/setup-vulkan-sdk@v1 | |
| with: | |
| vulkan-query-version: 1.4.304.1 | |
| vulkan-components: Vulkan-Headers, Vulkan-Loader | |
| vulkan-use-cache: true | |
| - name: "Configure and Build" | |
| run: | | |
| if [ "${{ matrix.compiler }}" = "gcc" ]; then | |
| export LUISA_CC=gcc | |
| export LUISA_CXX=g++ | |
| export LUISA_FLAGS="" | |
| else | |
| export LUISA_CC=clang-20 | |
| export LUISA_CXX=clang++-20 | |
| export LUISA_FLAGS="-stdlib=libc++" | |
| fi | |
| cmake -S . -B build -G Ninja -D LUISA_COMPUTE_ENABLE_RUST=OFF -D LUISA_COMPUTE_ENABLE_REMOTE=OFF -D LUISA_COMPUTE_ENABLE_CPU=OFF -D LUISA_COMPUTE_ENABLE_UNITY_BUILD=${{ matrix.platform.unity }} -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 --build build -j ${{ matrix.platform.jobs }} | |
| - name: "Install" | |
| run: | | |
| if [ "${{ matrix.config }}" = "Release" ]; then | |
| cmake --install build --prefix dist -v | |
| fi | |
| build-macos: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| compiler: [ homebrew-clang, system-clang ] | |
| config: [ Release, Debug ] | |
| name: macOS / ${{ matrix.config }} / ${{ matrix.compiler }} | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: "Install Dependencies" | |
| run: | | |
| brew reinstall cmake | |
| brew install llvm molten-vk ninja embree vulkan-headers vulkan-loader | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
| - name: "Configure and Build" | |
| run: | | |
| export PATH="$PATH:/opt/homebrew/opt/llvm/bin" | |
| if [ "${{ matrix.compiler }}" = "homebrew-clang" ]; then | |
| export CC=/opt/homebrew/opt/llvm/bin/clang | |
| export CXX=/opt/homebrew/opt/llvm/bin/clang++ | |
| export SDKROOT=$(xcrun --show-sdk-path) | |
| else | |
| export CC=/usr/bin/clang | |
| export CXX=/usr/bin/clang++ | |
| fi | |
| export SDKROOT="$(xcrun --sdk macosx --show-sdk-path)" | |
| cmake -S . -B build -G Ninja -D LUISA_COMPUTE_ENABLE_RUST=OFF -D LUISA_COMPUTE_ENABLE_REMOTE=OFF -D LUISA_COMPUTE_ENABLE_CPU=OFF -D LUISA_COMPUTE_ENABLE_VULKAN=OFF -D CMAKE_BUILD_TYPE=${{ matrix.config }} -D LUISA_COMPUTE_ENABLE_UNITY_BUILD=OFF | |
| cmake --build build | |
| - name: "Install" | |
| run: | | |
| if [ "${{ matrix.config }}" = "Release" ]; then | |
| cmake --install build --prefix dist -v | |
| fi | |
| build-windows: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: [ Release, Debug ] | |
| compiler: [ cl, clang, clang-cl ] | |
| name: Windows / ${{ matrix.config }} / ${{ matrix.compiler }} | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: "Setup Ninja" | |
| uses: ashutoshvarma/setup-ninja@master | |
| with: | |
| version: 1.11.1 | |
| - name: "Setup CUDA" | |
| uses: Jimver/cuda-toolkit@v0.2.22 | |
| with: | |
| cuda: 12.8.1 | |
| sub-packages: '[ "cudart", "nvrtc", "nvrtc_dev", "nvjitlink", "nvcc", "nvtx" ]' | |
| - name: "Setup Rust" | |
| uses: actions-rust-lang/setup-rust-toolchain@v1.10.1 | |
| - name: "Setup Vulkan" | |
| uses: johnnynunez/setup-vulkan-sdk@v1 | |
| with: | |
| vulkan-query-version: 1.4.304.1 | |
| vulkan-components: Vulkan-Headers, Vulkan-Loader | |
| vulkan-use-cache: true | |
| - name: "Configure and Build" | |
| shell: cmd | |
| run: | | |
| call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 | |
| cmake --version | |
| ninja --version | |
| IF "${{ matrix.compiler }}" == "clang" ( | |
| set CC=clang | |
| set CXX=clang++ | |
| ) ELSE ( | |
| set CC=${{ matrix.compiler }} | |
| set CXX=${{ matrix.compiler }} | |
| ) | |
| cmake -S . -G Ninja -B build -D LUISA_COMPUTE_ENABLE_RUST=OFF -D LUISA_COMPUTE_ENABLE_REMOTE=OFF -D LUISA_COMPUTE_ENABLE_CPU=OFF -D CMAKE_BUILD_TYPE=${{ matrix.config }} | |
| cmake --build build | |
| - name: "Install" | |
| run: | | |
| cmake --install build --prefix dist -v |