-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathaction.yaml
More file actions
41 lines (35 loc) · 1.03 KB
/
action.yaml
File metadata and controls
41 lines (35 loc) · 1.03 KB
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
name: "image-build-common"
description: "Common runner setup to build Container Images for prind"
runs:
using: "composite"
steps:
- name: "[misc] Clean Runner"
shell: bash
run: |
set -x
## Remove files
to_delete=(
"/swapfile"
"/usr/local/share/boost"
"$AGENT_TOOLSDIRECTORY"
"/usr/share/dotnet"
"$ANDROID_SDK_ROOT"
"/usr/local/lib/android"
"$ANDROID_SDK_ROOT"
"/usr/share/swift"
)
for f in ${to_delete[@]}; do
sudo rm -rf ${f} || true
done
## Clean docker
docker system prune --all --volumes --force
- name: "[docker] set up qemu"
uses: docker/setup-qemu-action@v3.3.0
- name: "[docker] set up buildx"
uses: docker/setup-buildx-action@v3.8.0
- name: "[python] set up python environment"
uses: actions/setup-python@v5.3.0
- name: "[prind] install requirements"
shell: bash
run: |
pip install -r scripts/build/requirements.txt