You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: troubleshooting/codeql-builds/compiled-languages-csharp.md
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,26 +126,28 @@ Next, consider specifying your own build steps from an existing CI workflow:
126
126
127
127
## "You are running out of disk space. The runner will stop working when the machine runs out of disk space."
128
128
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?
132
130
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:
139
135
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:\)
141
137
```yml
142
138
- name: Initialize CodeQL
143
139
uses: github/codeql-action/init@v2
144
140
with:
145
141
db-location: ‘C:\windows\temp\codeql-database’
146
142
```
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:
0 commit comments