@@ -244,6 +244,80 @@ jobs:
244244 run : ctest -C Release --output-on-failure --parallel $NUMBER_OF_PROCESSORS
245245 working-directory : ${{ github.workspace }}/build/windows/x86
246246
247+ gn-windows-x86_64 :
248+ runs-on : ' windows-2022-32core'
249+ timeout-minutes : 15
250+ env :
251+ DEPOT_TOOLS_WIN_TOOLCHAIN : 0
252+ steps :
253+ - name : Install Depot Tools
254+ uses : newkdev/setup-depot-tools@v1.0.1
255+ - name : Write .gclient
256+ shell : powershell
257+ run : |
258+ Set-Content -Path .gclient -Value "
259+ solutions = [
260+ { 'name': 'XNNPACK',
261+ 'url': 'https://github.com/google/XNNPACK',
262+ 'deps_file': 'DEPS',
263+ 'managed': False,
264+ 'custom_deps': {},
265+ },
266+ ]
267+ "
268+ working-directory : ${{ github.workspace }}
269+ - name : Setup build environment
270+ shell : bash
271+ run : |
272+ echo "VCVARSALL=$(vswhere -products \* -latest -property installationPath)\\VC\\Auxiliary\\Build\\vcvarsall.bat" >> $GITHUB_ENV
273+ - name : Sync to commit and run hooks
274+ shell : powershell
275+ run : gclient sync -vv --revision $env:GITHUB_SHA
276+ - name : Write LASTCHANGE files
277+ shell : powershell
278+ run : |
279+ $LastChangeContents = @(
280+ "LASTCHANGE=$env:GITHUB_SHA-$env:GITHUB_REF_NAME"
281+ "LASTCHANGE_YEAR=$(git log -1 --pretty=%Y)"
282+ )
283+
284+ Set-Content -Path build/util/LASTCHANGE -Value $LastChangeContents
285+ $UnixTime = git log -1 --pretty=%ct
286+ Set-Content -Path build/util/LASTCHANGE.committime -Value $UnixTime
287+ working-directory : ${{ github.workspace }}\XNNPACK
288+ - name : Generate build files (arm64, component)
289+ run : |
290+ gn gen --check --args='is_debug=true is_component_build=true dcheck_always_on=true target_cpu="arm64"' out/arm64.dchecks
291+ working-directory : ${{ github.workspace }}\XNNPACK
292+ - name : Generate build files (x64, dchecks)
293+ run : |
294+ gn gen --check --args='is_debug=false dcheck_always_on=true target_cpu="x64"' out/x64.dchecks
295+ working-directory : ${{ github.workspace }}\XNNPACK
296+ - name : Generate build files (x86, dchecks)
297+ run : |
298+ gn gen --check --args='is_debug=false dcheck_always_on=true target_cpu="x86"' out/x86.dchecks
299+ working-directory : ${{ github.workspace }}\XNNPACK
300+ - name : Build all targets (arm64, component)
301+ run : |
302+ autoninja -C out/arm64.dchecks
303+ working-directory : ${{ github.workspace }}\XNNPACK
304+ - name : Build all targets (x64 Release + debug checks)
305+ run : |
306+ autoninja -C out/x64.dchecks
307+ working-directory : ${{ github.workspace }}\XNNPACK
308+ - name : Build all targets (x86 Release + debug checks)
309+ run : |
310+ autoninja -C out/x86.dchecks
311+ working-directory : ${{ github.workspace }}\XNNPACK
312+ - name : Run tests (x64)
313+ run : |
314+ python3 scripts/run-gn-tests.py out/x64.dchecks
315+ working-directory : ${{ github.workspace }}\XNNPACK
316+ - name : Run tests (x86)
317+ run : |
318+ python3 scripts/run-gn-tests.py out/x86.dchecks
319+ working-directory : ${{ github.workspace }}\XNNPACK
320+
247321 cmake-macos-arm64 :
248322 runs-on : macos-latest
249323 timeout-minutes : 60
0 commit comments