forked from ChromeDevTools/devtools-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (52 loc) · 1.72 KB
/
build-swift-debugging.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build Swift Debugging Extension
on:
push:
branches:
- swift-debugging
jobs:
build-extension:
runs-on: ubuntu-22.04
timeout-minutes: 360
steps:
- name: Free disk space
run: |
df -h
sudo rm -rf /opt/hostedtoolcache
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /usr/local/.ghcup
sudo apt clean
if docker info > /dev/null 2>&1; then
docker rmi $(docker image ls -aq)
fi
df -h
- uses: actions/checkout@v4
- name: Create .gclient file
run: |
cat <<EOF > "${{ runner.workspace }}/.gclient"
solutions = [
{
"name" : "devtools-frontend",
"url" : "https://github.com/GoodNotes/devtools-frontend",
"deps_file" : "DEPS",
"managed" : True,
"custom_deps" : {
},
"custom_vars": {
"checkout_cxx_debugging_extension_deps": True
},
}
]
EOF
- name: Activate depot_tools
run: |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git "${{ runner.workspace }}/depot_tools"
echo "${{ runner.workspace }}/depot_tools" >> $GITHUB_PATH
- run: gclient sync
- uses: actions/setup-node@v4
with:
node-version: '22'
- run: ./tools/bootstrap.py ../../out -verbose -no-check -release-version 90001 -patch-level 0
working-directory: ./extensions/cxx_debugging/
- uses: actions/upload-artifact@v4
with:
name: cxx_debugging_extension
path: ./out/DevTools_CXX_Debugging.stage2/cxx_debugging_extension-*.zip