Skip to content

Commit 0c9a0f1

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

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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 > "${{ runner.workspace }}/.gclient"
14+
solutions = [
15+
{
16+
"name" : "devtools-frontend",
17+
"url" : "https://github.com/GoodNotes/devtools-frontend",
18+
"deps_file" : "DEPS",
19+
"managed" : True,
20+
"custom_deps" : {
21+
},
22+
"custom_vars": {
23+
"checkout_cxx_debugging_extension_deps": True
24+
},
25+
}
26+
]
27+
EOF
28+
- name: Activate depot_tools
29+
run: |
30+
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git "${{ runner.workspace }}/depot_tools"
31+
echo "${{ runner.workspace }}/depot_tools" >> $GITHUB_PATH
32+
- run: gclient sync
33+
- uses: actions/setup-node@v4
34+
with:
35+
node-version: '22'
36+
- run: ./tools/bootstrap.py ../../out -no-check -release-version 90001 -patch-level 0
37+
working-directory: ./extensions/cxx_debugging/
38+
- uses: actions/upload-artifact@v4
39+
with:
40+
name: cxx_debugging_extension
41+
path: ./out/DevTools_CXX_Debugging.stage2/cxx_debugging_extension-*.zip

0 commit comments

Comments
 (0)