Skip to content

Commit 27444d9

Browse files
authored
Update compiled-languages-csharp.md
1 parent 6438e25 commit 27444d9

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

troubleshooting/codeql-builds/compiled-languages-csharp.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -126,26 +126,28 @@ Next, consider specifying your own build steps from an existing CI workflow:
126126

127127
## "You are running out of disk space. The runner will stop working when the machine runs out of disk space."
128128
129-
Running low on disk using the default Actions runner? Try a few of these workarounds for a potential quick fix:
130-
131-
Clean up large directories of [preinstalled software](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#preinstalled-software) that you are potentially not using on the windows runners, add this to your “CodeQL” workflow:
129+
Running low on disk using the default Actions runner?
132130

133-
```yml
134-
- name: Clean up some disks
135-
run: |
136-
rd C:\Android\android-sdk
137-
docker system prune -af
138-
```
131+
GitHub also offers larger runners, which are available in larger disk configurations. For more information, see "[About larger runners.](https://docs.github.com/en/actions/using-github-hosted-runners/about-larger-runners#machine-specs-for-larger-runners)"
132+
- See also: [Vertical Scaling](#vertical-scaling---throw-hardware-at-the-software-problem)
133+
134+
Alternatively, try a few of these workarounds for a potential quick fix:
139135

140-
Specify the temp directory to store the CodeQL database - I have seen this resolve this specific problem with a Windows env (runs-on: windows-2019)
136+
Specify the OS Disk's (C:\) temp directory to store the CodeQL database. There is a slower disk speed tradeoff compared to using the Data Disk (D:\)
141137
```yml
142138
- name: Initialize CodeQL
143139
uses: github/codeql-action/init@v2
144140
with:
145141
db-location: ‘C:\windows\temp\codeql-database’
146142
```
147-
148-
- See also: [Vertical Scaling](#vertical-scaling---throw-hardware-at-the-software-problem)
143+
144+
Clean up large directories of [preinstalled software](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#preinstalled-software) that you are not using on the windows runner OS Disk. Add this to your “CodeQL” workflow:
145+
```yml
146+
- name: Clean up some disks
147+
run: |
148+
rd C:\Android\android-sdk
149+
docker system prune -af
150+
```
149151

150152
## MvcBuildViews target failures
151153

0 commit comments

Comments
 (0)