Skip to content

Commit

Permalink
Move swap file creation
Browse files Browse the repository at this point in the history
  • Loading branch information
HGuillemet committed May 18, 2024
1 parent 45ec370 commit c2e4936
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/actions/deploy-ubuntu/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ runs:
$SUDO rm -rf /usr/local/lib/android
$SUDO rm -rf /usr/share/dotnet
# Add some swap. Needed for pytorch and mkl.
$SUDO fallocate -l 4GB /swapfile
$SUDO chmod 600 /swapfile
$SUDO mkswap /swapfile
$SUDO swapon /swapfile
mkdir -p .ccache
echo "max_size = 2.0G" > .ccache/ccache.conf
echo "hash_dir = false" >> .ccache/ccache.conf
Expand Down Expand Up @@ -271,12 +277,6 @@ runs:
find -name *.deb | while read f; do ar -xv $f; $SUDO tar --totals -xvf data.tar.xz -C /; done;
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

0 comments on commit c2e4936

Please sign in to comment.