mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
Merge pull request #702 from turbo124/master
Reduce parallel jobs and add swap in case we are hitting github actions
This commit is contained in:
13
.github/workflows/build-image-v5.yaml
vendored
13
.github/workflows/build-image-v5.yaml
vendored
@@ -21,6 +21,19 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Add swap space
|
||||
run: |
|
||||
sudo fallocate -l 4G /swapfile
|
||||
sudo chmod 600 /swapfile
|
||||
sudo mkswap /swapfile
|
||||
sudo swapon /swapfile
|
||||
free -h
|
||||
|
||||
- name: Set MAKEFLAGS for parallel make jobs
|
||||
run: |
|
||||
export MAKEFLAGS="-j2"
|
||||
echo "MAKEFLAGS set to: $MAKEFLAGS"
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user