Skip to content

Commit 0f74ea9

Browse files
jacksonrlDawn LUCI CQ
authored andcommitted
delete some preloaded libs on ubuntu-latest to prevent out of space error
This, together with #51 allows the GitHub actions CI to complete all jobs, which has been failing since about November 14. This removes the preloaded dotnet, android and haskel libraries from the GitHub runner on Linux to reclaim enough space to finish building. I don't think any of these are relied on by dawn on Linux (and the build completes successfully), but someone should confirm that. The build happens is a container so I guess it is impossible it is relying on the host libraries anyway. This is an imported pull request from #52 GITHUB_PR_HEAD_SHA=ccf450356b7eeb32c02312e8699e974a2327db9a ORIGINAL_AUTHOR=jacksonrl <203005141+jacksonrl@users.noreply.github.com> GitOrigin-RevId: 0f5d96a Change-Id: I0e71e22f214cf115b78f65c1f76f7b7ebc76dc9e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/277875 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org>
1 parent 5bf05a2 commit 0f74ea9

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ jobs:
6464
cpp_compiler: g++
6565
# The manylinux container is to ensure ABI compatibility with glibc 2.28.
6666
# This way, the continuous delivery process casts a wide net across many linux distros.
67-
container: dockcross/manylinux_2_28-x64:latest
67+
container:
68+
image: dockcross/manylinux_2_28-x64:latest
69+
# Needed to run the "Free disk space on Linux host" step
70+
options: --volume /:/host
6871
exclude:
6972
- os: macos-latest
7073
toolchain: msvc
@@ -103,8 +106,16 @@ jobs:
103106
with:
104107
winsdk-build-version: ${{ env.WIN10_SDK_BUILD_VERSION }}
105108

109+
- name: Free disk space on Linux host
110+
if: matrix.container.image == 'dockcross/manylinux_2_28-x64:latest'
111+
run: |
112+
# Prevent runner from running out of disk space
113+
rm -rf /host/usr/share/dotnet
114+
rm -rf /host/usr/local/lib/android
115+
rm -rf /host/opt/ghc
116+
106117
- name: Set up dependencies on linux
107-
if: matrix.container == 'dockcross/manylinux_2_28-x64:latest'
118+
if: matrix.container.image == 'dockcross/manylinux_2_28-x64:latest'
108119
run: >
109120
dnf install -y mesa-libGL-devel libxcb libxcb-devel libX11-xcb libXcursor-devel libXrandr-devel libXinerama-devel libXi-devel libXext-devel libxkbcommon libxkbcommon-devel libxkbcommon-x11-devel mesa-vulkan-drivers wayland-protocols-devel wayland-devel
110121

0 commit comments

Comments
 (0)