Skip to content

fix warning

fix warning #2980

Workflow file for this run

name: build-xmake
on: [ push, pull_request ]
jobs:
build-linux:
strategy:
fail-fast: false
matrix:
os: [ ubuntu ]
toolchain:
- { name: gcc, version: 13 }
- { name: clang, version: 17 }
config: [ release, debug ]
name: ${{ matrix.os }} / ${{ matrix.config }} / ${{ matrix.toolchain.name }}-${{ matrix.toolchain.version }}
runs-on: [ self-hosted, x64, linux]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: "Configure and Build"
run: |
xmake lua setup.lua
xmake f -p linux -a x86_64 --toolchain=${{ matrix.toolchain.name }}-${{ matrix.toolchain.version }} -m ${{ matrix.config }} --cuda_backend=true --enable_dsl=true --enable_gui=true --enable_unity_build=false --enable_tests=true --enable_mimalloc=false --check -c
xmake --jobs=16
build-macos:
strategy:
fail-fast: false
matrix:
os: [ macos ]
compiler: [ homebrew-clang ] # , system-clang
config: [ release, debug ]
name: ${{ matrix.os }} / ${{ matrix.config }} / ${{ matrix.compiler }}
runs-on: [ self-hosted, macos, arm64 ]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: "Configure and Build"
run: |
if [ "${{ matrix.compiler }}" = "homebrew-clang" ]; then
export PATH=/usr/local/opt/llvm/bin:$PATH
fi
xmake lua setup.lua
xmake f -p macosx --toolchain=llvm -m ${{ matrix.config }} --mm=clang --mxx=clang++ --metal_backend=true --enable_dsl=true --enable_gui=true --enable_unity_build=false --enable_tests=true --enable_mimalloc=false --check -c
xmake -v
build-windows:
strategy:
fail-fast: false
matrix:
config: [ release, debug ]
compiler: [ msvc, clang-cl, llvm ]
name: windows / ${{ matrix.config }} / ${{ matrix.compiler }}
runs-on: [ self-hosted, windows, x64 ]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: "Configure and Build"
shell: cmd
run: |
xmake lua setup.lua ../luisa_compute_sdks
if "${{ matrix.compiler }}" == "llvm" (
xmake f -p windows -a x64 --toolchain=llvm --sdk="C:/Program Files/LLVM" -m ${{ matrix.config }} --dx_backend=true --cuda_backend=true --enable_dsl=true --enable_gui=true --enable_unity_build=false --enable_tests=true --sdk_dir=../luisa_compute_sdks --check -c
) else (
xmake f -p windows -a x64 --toolchain=${{ matrix.compiler }} -m ${{ matrix.config }} --dx_backend=true --cuda_backend=true --enable_dsl=true --enable_gui=true --enable_unity_build=false --enable_tests=true --sdk_dir=../luisa_compute_sdks --check -c
)
xmake