Skip to content

Commit 2a4ec6d

Browse files
[swift] Add a GitHub Actions workflow for distribution
1 parent 4c20436 commit 2a4ec6d

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build Swift Debugging Extension
2+
on:
3+
push:
4+
branches:
5+
- swift-debugging
6+
jobs:
7+
build-extension:
8+
runs-on: ubuntu-22.04
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Create .gclient file
12+
run: |
13+
cat <<EOF > ../.gclient
14+
solutions = [
15+
{
16+
"name" : "devtools-frontend",
17+
"deps_file" : "DEPS",
18+
"managed" : True,
19+
"custom_deps" : {
20+
},
21+
"custom_vars": {
22+
"checkout_cxx_debugging_extension_deps": True
23+
},
24+
}
25+
]
26+
EOF
27+
- name: Activate depot_tools
28+
run: |
29+
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git "${{ runner.workspace }}/depot_tools"
30+
echo "${{ runner.workspace }}/depot_tools" >> $GITHUB_PATH
31+
- run: gclient sync
32+
- uses: actions/setup-node@v4
33+
with:
34+
node-version: '22'
35+
- run: ./tools/bootstrap.py ../../out -no-check -release-version 90001 -patch-level 0
36+
working-directory: ./extensions/cxx_debugging/
37+
- uses: actions/upload-artifact@v4
38+
with:
39+
name: cxx_debugging_extension
40+
path: ./out/DevTools_CXX_Debugging.stage2/cxx_debugging_extension-*.zip

0 commit comments

Comments
 (0)