Skip to content

Commit

Permalink
Make swap space available on Linux.
Browse files Browse the repository at this point in the history
Because otherwise we seem to be running out of memory and crashing.
  • Loading branch information
kring committed Nov 5, 2024
1 parent 42c648f commit dc9b89b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
build_type: [Debug, RelWithDebInfo]
exclude:
- compiler: clang
platform: ubuntu-22.04
platform: ubuntu-22.04
- compiler: gcc
platform: macos-12
- compiler: gcc
Expand Down Expand Up @@ -110,6 +110,15 @@ jobs:
restore-keys: |
vcpkg-${{ env.CACHE_KEY }}-${{ hashFiles('CMakeLists.txt') }}
vcpkg-${{ env.CACHE_KEY }}
- name: Make more swap space available
if: ${{ matrix.platform != 'macos-12'}}
run: |
sudo swapoff -a
sudo fallocate -l 10G /mnt/swapfile
sudo chmod 600 /mnt/swapfile
sudo mkswap /mnt/swapfile
sudo swapon /mnt/swapfile
sudo swapon --show
- name: Set CC and CXX
if: ${{ matrix.compiler == 'clang' && matrix.platform != 'macos-12'}}
run: |
Expand Down

0 comments on commit dc9b89b

Please sign in to comment.