Skip to content

Commit ccaf01d

Browse files
committed
Auto merge of rust-lang#131362 - Kobzol:ci-free-runners-linux-4c, r=<try>
CI: use free runners for 4-core Linux jobs It looks like the [free runners](https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories) already have the same spec as the `4c` custom "large" runner (4 cores, 16 GiB of memory, Ubuntu 20.04). try-job: dist-various-1
2 parents 484c8e7 + ac4533d commit ccaf01d

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/ci.yml

+14
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ jobs:
104104
with:
105105
fetch-depth: 2
106106

107+
# Free up disk space by removing preinstalled components that
108+
# we do not need. We do this to enable some of the less resource
109+
# intensive jobs to run on free runners, which however also have less
110+
# disk sapce.
111+
- name: free up disk space
112+
uses: jlumbroso/free-disk-space@main
113+
with:
114+
large-packages: false
115+
107116
# Rust Log Analyzer can't currently detect the PR number of a GitHub
108117
# Actions build on its own, so a hint in the log message is needed to
109118
# point it in the right direction.
@@ -191,6 +200,11 @@ jobs:
191200
- name: create github artifacts
192201
run: src/ci/scripts/create-doc-artifacts.sh
193202

203+
- name: print disk usage
204+
run: |
205+
echo "disk usage:"
206+
df -h
207+
194208
- name: upload artifacts to github
195209
uses: actions/upload-artifact@v4
196210
with:

src/ci/github-actions/jobs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ runners:
55
env: { }
66

77
- &job-linux-4c
8-
os: ubuntu-20.04-4core-16gb
8+
os: ubuntu-20.04
99
<<: *base-job
1010

1111
- &job-linux-8c

0 commit comments

Comments
 (0)