47
47
- { config: release, test-category: full }
48
48
# default not full gpu tests
49
49
- full-gpu-tests : false
50
+ - build-llvm : true
51
+ - { platform: wasm, build-llvm: false }
50
52
# The runners don't have a GPU by default except for the self-hosted ones
51
53
- has-gpu : false
52
54
# Self-hosted aarch64 build
56
58
platform : aarch64
57
59
test-category : smoke
58
60
full-gpu-tests : false
59
- runs-on : [self-hosted, Linux, ARM64]
60
- has-gpu : true
61
+ runs-on : ubuntu-22.04-arm
62
+ has-gpu : false
63
+ build-llvm : false
61
64
# Self-hosted full gpu build
62
65
- os : windows
63
66
config : release
@@ -110,7 +113,7 @@ jobs:
110
113
compiler : ${{matrix.compiler}}
111
114
platform : ${{matrix.platform}}
112
115
config : ${{matrix.config}}
113
- build-llvm : ${{ matrix.platform != 'wasm' }}
116
+ build-llvm : ${{ matrix.build-llvm }}
114
117
- name : Build Slang
115
118
if : steps.filter.outputs.should-run == 'true'
116
119
run : |
@@ -140,6 +143,12 @@ jobs:
140
143
"-DSLANG_SLANG_LLVM_BINARY_URL=$(pwd)/build/dist-release/slang-llvm.zip" \
141
144
"-DCMAKE_COMPILE_WARNING_AS_ERROR=${{matrix.warnings-as-errors}}"
142
145
cmake --workflow --preset "${{matrix.config}}"
146
+ elif [[ "${{ matrix.build-llvm }}" = "false" ]]; then
147
+ # linux aarch64 cannot build llvm.
148
+ cmake --preset default --fresh \
149
+ -DSLANG_SLANG_LLVM_FLAVOR=DISABLE \
150
+ -DCMAKE_COMPILE_WARNING_AS_ERROR=${{matrix.warnings-as-errors}}
151
+ cmake --workflow --preset "${{matrix.config}}"
143
152
else
144
153
# Otherwise, use the "system" llvm we have just build or got from the
145
154
# cache in the setup phase
@@ -150,7 +159,7 @@ jobs:
150
159
fi
151
160
fi
152
161
- name : Test Slang
153
- if : steps.filter.outputs.should-run == 'true' && matrix.platform != 'wasm'
162
+ if : steps.filter.outputs.should-run == 'true' && matrix.platform != 'wasm' && matrix.platform != 'aarch64'
154
163
run : |
155
164
export SLANG_RUN_SPIRV_VALIDATION=1
156
165
export SLANG_USE_SPV_SOURCE_LANGUAGE_UNKNOWN=1
0 commit comments