Skip to content

Commit

Permalink
Remove SWAP_SIZE. Ditch android and dotnet.
Browse files Browse the repository at this point in the history
  • Loading branch information
HGuillemet committed May 7, 2024
1 parent dfdb0bf commit 45ec370
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
18 changes: 10 additions & 8 deletions .github/actions/deploy-ubuntu/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ runs:
fi
cd $HOME
# Free disk space by removing some unused system components
$SUDO rm -rf /usr/local/lib/android
$SUDO rm -rf /usr/share/dotnet
mkdir -p .ccache
echo "max_size = 2.0G" > .ccache/ccache.conf
echo "hash_dir = false" >> .ccache/ccache.conf
Expand Down Expand Up @@ -267,14 +271,12 @@ runs:
find -name *.deb | while read f; do ar -xv $f; $SUDO tar --totals -xvf data.tar.xz -C /; done;
fi
if [ ${SWAP_SIZE:-0} -gt 0 ]; then
echo Adding ${SWAP_SIZE}GB of swap
$SUDO fallocate -l ${SWAP_SIZE}GB /swapfile
$SUDO chmod 600 /swapfile
$SUDO mkswap /swapfile
$SUDO swapon /swapfile
fi
# Add some swap. Needed for pytorch and mkl.
$SUDO fallocate -l 4GB /swapfile
$SUDO chmod 600 /swapfile
$SUDO mkswap /swapfile
$SUDO swapon /swapfile
GRADLE_TASK=publishToMavenLocal
MAVEN_PHASE=install
if [[ -n ${CI_DEPLOY_USERNAME:-} ]] && [[ ! "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/mkl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ jobs:
# - uses: bytedeco/javacpp-presets/.github/actions/deploy-ubuntu@actions
linux-x86_64:
runs-on: ubuntu-20.04
env:
SWAP_SIZE: 4
steps:
- uses: bytedeco/javacpp-presets/.github/actions/deploy-ubuntu@actions
# macosx-x86_64:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/pytorch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ jobs:
strategy:
matrix:
ext: ["", -gpu]
env:
SWAP_SIZE: 2
steps:
- uses: bytedeco/cache@always
with:
Expand Down

0 comments on commit 45ec370

Please sign in to comment.