Skip to content

Commit 17a9a9e

Browse files
authored
Merge pull request #1951 from jtobin/0.7.1-staging
v0.7.1-rc1
2 parents 154b609 + 7033423 commit 17a9a9e

File tree

80 files changed

+2418
-2352
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+2418
-2352
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: "Clean up runner disk space"
2+
description: "Removes large, non-essential toolsets to free up disk space on the runner."
3+
4+
runs:
5+
using: "composite"
6+
steps:
7+
- name: Free up disk space
8+
shell: bash
9+
run: |
10+
set -euo pipefail
11+
12+
echo "Removing large toolsets to free up disk space..."
13+
echo "Disk space before cleanup:"
14+
df -h || true
15+
16+
shopt -s nullglob
17+
18+
remove_path() {
19+
local path="$1"
20+
if [ -e "$path" ] || [ -L "$path" ]; then
21+
echo "Removing $path"
22+
sudo rm -rf "$path"
23+
fi
24+
}
25+
26+
# Remove large toolsets and caches.
27+
remove_path /usr/share/dotnet
28+
remove_path /usr/local/lib/android
29+
remove_path /opt/ghc
30+
remove_path /usr/share/swift
31+
for path in /usr/local/julia*; do remove_path "$path"; done
32+
remove_path /opt/hostedtoolcache
33+
34+
# Remove caches.
35+
remove_path /usr/local/share/boost
36+
if [ -n "${AGENT_TOOLSDIRECTORY:-}" ]; then
37+
remove_path "$AGENT_TOOLSDIRECTORY"
38+
fi
39+
40+
# Remove docker images to save space.
41+
if command -v docker >/dev/null 2>&1; then
42+
docker image prune -a -f || true
43+
else
44+
echo "Docker not available; skipping image prune."
45+
fi
46+
47+
# Remove large apt packages when available.
48+
if command -v apt-get >/dev/null 2>&1; then
49+
sudo apt-get remove -y \
50+
'^aspnetcore-.*' \
51+
'^dotnet-.*' \
52+
'^llvm-.*' \
53+
'php.*' \
54+
'^mongodb-.*' \
55+
'^mysql-.*' \
56+
azure-cli \
57+
google-chrome-stable \
58+
firefox \
59+
powershell \
60+
mono-devel \
61+
libgl1-mesa-dri 2>/dev/null || true
62+
sudo apt-get autoremove -y || true
63+
sudo apt-get clean || true
64+
else
65+
echo "apt-get not available; skipping package removals."
66+
fi
67+
68+
echo "Disk space after cleanup:"
69+
df -h || true
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: LiT setup
2+
description: Prepare LiT workspace with Taproot-Assets replaces, caches, and dependencies
3+
runs:
4+
using: composite
5+
steps:
6+
- name: setup go
7+
uses: actions/setup-go@v5
8+
with:
9+
go-version: '~${{ env.GO_VERSION }}'
10+
cache: true
11+
cache-dependency-path: |
12+
lightning-terminal/go.sum
13+
go.sum
14+
15+
- name: Clone LiT repository
16+
uses: actions/checkout@v5
17+
with:
18+
repository: lightninglabs/lightning-terminal
19+
ref: ${{ env.LITD_BRANCH }}
20+
path: lightning-terminal
21+
22+
- name: Update go.mod to use the local repository
23+
working-directory: ./lightning-terminal
24+
run: |
25+
go mod edit -replace=github.com/lightninglabs/taproot-assets=../
26+
go mod edit -replace=github.com/lightninglabs/taproot-assets/taprpc=../taprpc
27+
go mod edit -replace=github.com/golang-migrate/migrate/v4=github.com/lightninglabs/migrate/[email protected]
28+
go mod tidy
29+
shell: bash
30+
31+
- name: Setup Node.js and cache Yarn dependencies
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: '20.x'
35+
cache: 'yarn'
36+
cache-dependency-path: lightning-terminal/app/yarn.lock
37+
38+
- name: Install LiT app dependencies
39+
working-directory: ./lightning-terminal/app
40+
run: yarn
41+
shell: bash

0 commit comments

Comments
 (0)