diff options
Diffstat (limited to '.github/workflows/compile-regression-test.yml')
| -rw-r--r-- | .github/workflows/compile-regression-test.yml | 53 |
1 files changed, 31 insertions, 22 deletions
diff --git a/.github/workflows/compile-regression-test.yml b/.github/workflows/compile-regression-test.yml index 962b2cf54..b6b484b9a 100644 --- a/.github/workflows/compile-regression-test.yml +++ b/.github/workflows/compile-regression-test.yml @@ -1,5 +1,3 @@ -# This is a basic workflow to help you get started with Actions - name: Compile Regression-Test on: @@ -12,37 +10,48 @@ concurrency: cancel-in-progress: true jobs: build: - runs-on: [self-hosted, Windows, regression-test] timeout-minutes: 100 continue-on-error: true strategy: fail-fast: false matrix: - configuration: ['Release'] - platform: ['x64'] + os: [windows] + config: [release] + compiler: [cl] + platform: [x86_64] include: - - platform: x64 - testPlatform: x64 - - platform: x64 - testCategory: full + # Self-hosted falcor tests + - warnings-as-errors: false + test-category: full + full-gpu-tests: false + runs-on: [Windows, self-hosted, regression-test] + runs-on: ${{ matrix.runs-on }} + defaults: + run: + shell: bash steps: - uses: actions/checkout@v3 with: submodules: 'true' fetch-depth: '0' - - name: setup-msbuild - uses: microsoft/setup-msbuild@v1 - - name: build + - name: Setup + uses: ./.github/actions/common-setup + with: + os: ${{matrix.os}} + compiler: ${{matrix.compiler}} + platform: ${{matrix.platform}} + config: ${{matrix.config}} + build-llvm: true + - name: Build Slang run: | - .\premake.bat vs2019 --arch=${{matrix.platform}} --deps=true --no-progress=true --enable-cuda=true --enable-examples=false - - .\make-slang-tag-version.bat - - MSBuild.exe slang.sln -v:m -m -property:Configuration=${{matrix.configuration}} -property:Platform=${{matrix.platform}} -property:WindowsTargetPlatformVersion=10.0.19041.0 -maxcpucount:12 - + cmake --preset default --fresh \ + -DSLANG_SLANG_LLVM_FLAVOR=USE_SYSTEM_LLVM \ + -DCMAKE_COMPILE_WARNING_AS_ERROR=${{matrix.warnings-as-errors}} \ + -DSLANG_ENABLE_CUDA=1 + cmake --workflow --preset "${{matrix.config}}" - name: Run compile and validation test run: | - $gitbash = 'C:\Program Files\git\bin\bash.exe' - cp -r 'C:\slang_compile_test_suite_a' .\ - cd .\slang_compile_test_suite_a - & $gitbash compile_all_slang.sh + cp -r /c/slang_compile_test_suite_a . + cd slang_compile_test_suite_a + export SLANGC_PATH="$bin_dir/slangc.exe" + bash ./compile_all_slang.sh |
