Skip to content

Commit

Permalink
[docker][fix] Create swap file for ARM builds
Browse files Browse the repository at this point in the history
  • Loading branch information
lloesche committed Oct 19, 2022
1 parent b71b09f commit 0ed7e8a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,17 @@ jobs:
id: sha
run: echo "::set-output name=short::${GITHUB_SHA::7}"

- name: Create swap for ARM builds
run: |
if [ "${{ github.ref_type }}" = tag ]; then
echo "Creating swap file for ARM builds"
time sudo dd if=/dev/zero of=/swapfile1 bs=10M count=1000
sudo chmod 600 /swapfile1
sudo mkswap /swapfile1
sudo swapon /swapfile1
free -h
fi
- name: Set build platforms
id: platform
run: |
Expand Down

0 comments on commit 0ed7e8a

Please sign in to comment.