@@ -12,14 +12,14 @@ jobs:
1212 fail-fast : false
1313 matrix :
1414 include :
15- - { name: "Linux System Core", classifier: "linuxsystemcore", os: ubuntu-24.04, container: "wpilib/systemcore-cross-ubuntu:2027-24.04", action: "build" }
16- - { name: "Linux System Core Debug", classifier: "linuxsystemcoredebug", os: ubuntu-24.04, container: "wpilib/systemcore-cross-ubuntu:2027-24.04", action: "build" }
17- - { name: "Linux System Core Static", classifier: "linuxsystemcorestatic", os: ubuntu-24.04, container: "wpilib/systemcore-cross-ubuntu:2027-24.04", action: "build" }
18- - { name: "Linux System Core Static Debug", classifier: "linuxsystemcorestaticdebug", os: ubuntu-24.04, container: "wpilib/systemcore-cross-ubuntu:2027-24.04", action: "build" }
19- - { name: "Linux x86-64", classifier: "linuxx86-64,headers,sources", os: ubuntu-24.04, container: "wpilib/systemcore-cross-ubuntu:2027-24.04", action: "test" }
20- - { name: "Linux x86-64 Debug", classifier: "linuxx86-64debug", os: ubuntu-24.04, container: "wpilib/systemcore-cross-ubuntu:2027-24.04", action: "test" }
21- - { name: "Linux x86-64 Static", classifier: "linuxx86-64static", os: ubuntu-24.04, container: "wpilib/systemcore-cross-ubuntu:2027-24.04", action: "test" }
22- - { name: "Linux x86-64 Static Debug", classifier: "linuxx86-64staticdebug", os: ubuntu-24.04, container: "wpilib/systemcore-cross-ubuntu:2027-24.04", action: "test" }
15+ - { name: "Linux System Core", classifier: "linuxsystemcore", os: ubuntu-24.04, action: "build" }
16+ - { name: "Linux System Core Debug", classifier: "linuxsystemcoredebug", os: ubuntu-24.04, action: "build" }
17+ - { name: "Linux System Core Static", classifier: "linuxsystemcorestatic", os: ubuntu-24.04, action: "build" }
18+ - { name: "Linux System Core Static Debug", classifier: "linuxsystemcorestaticdebug", os: ubuntu-24.04, action: "build" }
19+ - { name: "Linux x86-64", classifier: "linuxx86-64,headers,sources", os: ubuntu-24.04, action: "test" }
20+ - { name: "Linux x86-64 Debug", classifier: "linuxx86-64debug", os: ubuntu-24.04, action: "test" }
21+ - { name: "Linux x86-64 Static", classifier: "linuxx86-64static", os: ubuntu-24.04, action: "test" }
22+ - { name: "Linux x86-64 Static Debug", classifier: "linuxx86-64staticdebug", os: ubuntu-24.04, action: "test" }
2323
2424 - { name: "macOS", classifier: "osxuniversal,osxuniversaldebug,headers,sources,osxuniversalstatic,osxuniversalstaticdebug,linuxsystemcore,linuxsystemcoredebug,linuxsystemcorestatic,linuxsystemcorestaticdebug", os: macOS-15, action: "test" }
2525
3434
3535 name : " ${{ matrix.action == 'test' && 'Test' || 'Build' }} ${{ matrix.name }}"
3636 runs-on : ${{ matrix.os }}
37- container : ${{ matrix.container }}
3837 steps :
38+ - name : Check disk free space pre-cleanup
39+ run : df -h
40+
41+ - name : Free disk space (Linux)
42+ uses : jlumbroso/free-disk-space@main
43+ with :
44+ tool-cache : false
45+ android : true
46+ dotnet : true
47+ haskell : true
48+ large-packages : false
49+ docker-images : false
50+ swap-storage : false
51+ if : startsWith(matrix.os, 'ubuntu')
52+ - name : Free disk space (macOS)
53+ # CodeQL: 5G
54+ # go: 748M
55+ # Android: 12G
56+ run : |
57+ rm -rf /Users/runner/hostedtoolcache/CodeQL
58+ rm -rf /Users/runner/hostedtoolcache/go
59+ rm -rf /Users/runner/Library/Android
60+ if : startsWith(matrix.os, 'macOS')
61+
62+ - name : Check disk free space post-cleanup
63+ run : df -h
64+
3965 - uses : actions/checkout@v4
4066 with : { fetch-depth: 0 }
4167
4571 username : ${{ secrets.BAZEL_CACHE_USERNAME }}
4672 password : ${{ secrets.BAZEL_CACHE_PASSWORD }}
4773
74+ - name : Install apt dependencies
75+ if : matrix.os == 'ubuntu-24.04'
76+ run : sudo apt-get install -y libgl1-mesa-dev libx11-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev
77+
4878 - if : matrix.os == 'ubuntu-24.04'
4979 uses :
bazel-contrib/[email protected] 5080 with :
6191 fi
6292 shell : bash
6393
64- - name : Free Space
94+ - name : Check disk free space
6595 if : always()
66- shell : bash
67- run : |
68- if [[ "${{ matrix.os }}" == "windows-2022" ]]; then
69- fsutil volume diskfree C:
70- else
71- df -h /
72- fi
96+ run : df -h
7397
7498 buildifier :
7599 name : " buildifier"
0 commit comments