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