Skip to content

Commit 4cc6706

Browse files
Sentimentronxnnpack-bot
authored andcommitted
[gn] Add basic Github Actions support
Minimal debug build for Linux to check the gclient + gn standalone config. PiperOrigin-RevId: 858622997
1 parent beb3639 commit 4cc6706

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,37 @@ jobs:
381381
run: cmake --build build/ios/x86_64 --parallel $(sysctl -n hw.ncpu) -- -sdk iphonesimulator -quiet
382382
working-directory: ${{ github.workspace }}
383383

384+
gn-linux-x86_64:
385+
runs-on: 'ubuntu-24.04-8core'
386+
timeout-minutes: 10
387+
steps:
388+
- name: Install Depot Tools
389+
uses: newkdev/setup-depot-tools@v1.0.1
390+
- name: Write .gclient
391+
run: |
392+
cat <<EOF > .gclient
393+
solutions = [
394+
{ "name" : 'xnnpack',
395+
"url" : 'https://github.com/google/XNNPACK',
396+
"deps_file" : 'DEPS',
397+
"managed" : False,
398+
"custom_deps" : {
399+
},
400+
"custom_vars": {},
401+
},
402+
]
403+
EOF
404+
- name: Sync and runhooks
405+
run: gclient sync --revision src@${{ GITHUB_SHA }}
406+
- name: Generate build files
407+
run: |
408+
gn gen --args="is_debug=true target_cpu=\"x64\" use_siso=true" out/Debug
409+
working-directory: ${{ github.workspace }}/XNNPACK
410+
- name: Build all targets (Debug)
411+
run: |
412+
autoninja -C out/Debug
413+
working-directory: ${{ github.workspace }}/XNNPACK
414+
384415
bazel-linux-x86_64-clang-18:
385416
runs-on: 'ubuntu-24.04-8core'
386417
timeout-minutes: 60

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ vars = {
4949
# different from the project used in 'rbe_instance'
5050
'rewrapper_cfg_project': Str(''),
5151
# Fetch configuration files required for the 'use_remoteexec' gn arg
52-
'download_remoteexec_cfg': True,
52+
'download_remoteexec_cfg': False,
5353
# reclient CIPD package version
5454
'reclient_version': 're_client_version:0.185.0.db415f21-gomaip',
5555

0 commit comments

Comments
 (0)