-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (40 loc) · 1.22 KB
/
build.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
name: Test Building Docker Image and Workspace
on:
push:
branches: [ main ]
paths:
- '.github/workflows/build-docker-image.yaml'
- '**'
- '!docker/home/**'
- '!docker/*.sh'
- '!docker/timezone/**'
- '!docker/uid/**'
jobs:
test_build:
runs-on: ubuntu-20.04
steps:
# run test
- name: Trigger Workflow in Sandbox
run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.TOKEN }}" \
https://api.github.com/repos/cmu-cabot/sandbox/dispatches \
-d '{"event_type": "build-and-test"}'
env:
PAT: ${{ secrets.TOKEN }}
- name: Maximize build space
run: |
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
sudo rm -rf /opt/ghc
echo "Available storage:"
df -h
- uses: actions/checkout@v4
- name: Install vcs
run: pip3 install vcstool
- name: Prepare thirdparty repos
run: ./setup-dependency.sh
- name: Build images
shell: bash
run: ./build-docker.sh -p -i -w