Skip to content

Commit 641bc62

Browse files
committed
Making it so linux is cleaned first.
1 parent 09d1ee2 commit 641bc62

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,18 @@ jobs:
5252
build_type: Debug
5353

5454
steps:
55+
- name: Free disk space (Linux)
56+
if: matrix.config.os == 'ubuntu-24.04'
57+
run: |
58+
# Free up disk space on Ubuntu runners to prevent "No space left on device" during vcpkg builds
59+
# Reference: https://github.com/actions/runner-images/issues/2840
60+
sudo rm -rf /usr/share/dotnet
61+
sudo rm -rf /usr/local/lib/android
62+
sudo rm -rf /opt/ghc
63+
sudo rm -rf /opt/hostedtoolcache/CodeQL
64+
sudo docker image prune --all --force
65+
df -h
66+
5567
- name: checkout
5668
uses: actions/checkout@v3
5769

@@ -112,18 +124,6 @@ jobs:
112124
$env:PATH = "$env:PATH;C:\Program Files (x86)\NSIS"
113125
echo "C:\Program Files (x86)\NSIS" >> $env:GITHUB_PATH
114126
115-
- name: Free disk space (Linux)
116-
if: matrix.config.os == 'ubuntu-24.04'
117-
run: |
118-
# Free up disk space on Ubuntu runners to prevent "No space left on device" during vcpkg builds
119-
# Reference: https://github.com/actions/runner-images/issues/2840
120-
sudo rm -rf /usr/share/dotnet
121-
sudo rm -rf /usr/local/lib/android
122-
sudo rm -rf /opt/ghc
123-
sudo rm -rf /opt/hostedtoolcache/CodeQL
124-
sudo docker image prune --all --force
125-
df -h
126-
127127
- name: Installing Dependencies (Linux)
128128
if: matrix.config.os == 'ubuntu-24.04'
129129
run: |

0 commit comments

Comments
 (0)