File tree 2 files changed +21
-5
lines changed
2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 32
32
build :
33
33
runs-on : ubuntu-22.04
34
34
steps :
35
+ - name : Free up disk space
36
+ run : |
37
+ sudo rm -rf /usr/local/.ghcup
38
+ sudo rm -rf /usr/local/lib/android
39
+ sudo rm -rf /usr/local/lib/node_modules
40
+ sudo rm -rf /usr/share/dotnet
41
+ sudo rm -rf /usr/share/swift
42
+ df -h
43
+
35
44
- name : Checkout
36
45
uses : actions/checkout@v4
37
46
43
52
44
53
- name : Build packages
45
54
run : |
46
- df -h
47
55
[ "${{ github.event.inputs.package }}" = "client" ] && package="client"
48
56
if [ "${{ github.event.inputs.arch }}" = "arm64" ]; then
49
57
if [ "${RUNNER_DEBUG}" = "1" ]; then
58
66
docker buildx build -o packages --build-arg buildoptions="github ${package}" --build-arg baseimage=${{ github.event.inputs.baseimage }} --platform linux/amd64 .
59
67
fi
60
68
fi
61
- df -h
62
69
echo "DEB_VERSION=$(dpkg --info packages/proxmox-backup-server_*.deb | sed -n '/Version/ s/[^:]\+: //p')" >> $GITHUB_ENV
63
70
echo "DEB_VERSION_UPSTREAM=$(dpkg --info packages/proxmox-backup-server_*.deb | sed -n '/Version/ s/[^:]\+: \([0-9.]\+\)-[0-9]/\1/p')" >> $GITHUB_ENV
64
71
- name : Test packages
65
72
run : |
66
- docker buildx build --build-arg baseimage=${{ github.event.inputs.baseimage }} --platform linux/${{ github.event.inputs.arch }} -f .github/Dockerfile.installtest .
73
+ df -h
74
+ docker buildx build --build-arg baseimage=${{ github.event.inputs.baseimage }} --platform linux/${{ github.event.inputs.arch }} -f .github/Dockerfile.installtest .
Original file line number Diff line number Diff line change 19
19
contents : write
20
20
runs-on : ubuntu-22.04
21
21
steps :
22
+ - name : Free up disk space
23
+ run : |
24
+ sudo rm -rf /usr/local/.ghcup
25
+ sudo rm -rf /usr/local/lib/android
26
+ sudo rm -rf /usr/local/lib/node_modules
27
+ sudo rm -rf /usr/share/dotnet
28
+ sudo rm -rf /usr/share/swift
29
+ df -h
30
+
22
31
- name : Checkout
23
32
uses : actions/checkout@v4
24
33
@@ -30,19 +39,18 @@ jobs:
30
39
31
40
- name : Build packages
32
41
run : |
33
- df -h
34
42
baseimage="debian:bookworm-slim"
35
43
echo "DEB_DIST=Debian/Bookworm" >> $GITHUB_ENV
36
44
if [ "${RUNNER_DEBUG}" = "1" ]; then
37
45
docker buildx build -o packages --build-arg buildoptions="cross github debug" --build-arg baseimage=${baseimage} --platform linux/amd64 -f .github/Dockerfile.crosscompile-arm64 .
38
46
else
39
47
docker buildx build -o packages --build-arg buildoptions="cross github" --build-arg baseimage=${baseimage} --platform linux/amd64 -f .github/Dockerfile.crosscompile-arm64 .
40
48
fi
41
- df -h
42
49
echo "DEB_VERSION=$(dpkg --info packages/proxmox-backup-server_*.deb | sed -n '/Version/ s/[^:]\+: //p')" >> $GITHUB_ENV
43
50
echo "DEB_VERSION_UPSTREAM=$(dpkg --info packages/proxmox-backup-server_*.deb | sed -n '/Version/ s/[^:]\+: \([0-9.]\+\)-[0-9]/\1/p')" >> $GITHUB_ENV
44
51
- name : Test packages
45
52
run : |
53
+ df -h
46
54
baseimage="debian:bookworm-slim"
47
55
docker buildx build --build-arg baseimage=${baseimage} --platform linux/arm64 -f .github/Dockerfile.installtest .
48
56
- name : Release packages
You can’t perform that action at this time.
0 commit comments