-
Notifications
You must be signed in to change notification settings - Fork 214
69 lines (68 loc) · 1.83 KB
/
compile-regression-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Compile Regression-Test
on:
push:
branches: [master]
paths-ignore:
- "docs/**"
- "LICENSES/**"
- "LICENSE"
- "CONTRIBUTING.md"
- "README.md"
pull_request:
branches: [master]
paths-ignore:
- "docs/**"
- "LICENSES/**"
- "LICENSE"
- "CONTRIBUTING.md"
- "README.md"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
timeout-minutes: 100
continue-on-error: true
strategy:
fail-fast: false
matrix:
os: [windows]
config: [release]
compiler: [cl]
platform: [x86_64]
include:
# Self-hosted falcor tests
- warnings-as-errors: true
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@v4
with:
submodules: "recursive"
fetch-depth: "0"
- 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: |
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: |
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