Skip to content

Commit 5fc950b

Browse files
authored
Release Workflow: Fix workflow edge case (#8792)
* release(docker): fix workflow edge case that prevented CUDA build from completing * bugfix(release): fix yaml syntax error * bugfix(CI/CD): fix similar problem in typegen check
1 parent 63dec98 commit 5fc950b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/build-container.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ jobs:
5353
df -h
5454
sudo rm -rf /usr/share/dotnet
5555
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
56-
sudo swapoff /mnt/swapfile
57-
sudo rm -rf /mnt/swapfile
56+
if [ -f /mnt/swapfile ]; then
57+
sudo swapoff /mnt/swapfile
58+
sudo rm -rf /mnt/swapfile
59+
fi
5860
if [ -d /mnt ]; then
5961
sudo chmod -R 777 /mnt
6062
echo '{"data-root": "/mnt/docker-root"}' | sudo tee /etc/docker/daemon.json

.github/workflows/typegen-checks.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ jobs:
4646
df -h
4747
sudo rm -rf /usr/share/dotnet
4848
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
49-
sudo swapoff /mnt/swapfile
50-
sudo rm -rf /mnt/swapfile
49+
if [ -f /mnt/swapfile ]; then
50+
sudo swapoff /mnt/swapfile
51+
sudo rm -rf /mnt/swapfile
52+
fi
5153
echo "----- Free space after cleanup"
5254
df -h
5355

0 commit comments

Comments
 (0)