Skip to content

Commit

Permalink
[chore](workflow) Increase the build space for master branch (apache#108
Browse files Browse the repository at this point in the history
)

There is not enough disk space to build the third-party libraries, we should increase the build space.
  • Loading branch information
adonis0147 authored Jul 27, 2023
1 parent f37abb3 commit 5dd3955
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,23 @@ jobs:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout easimon/maximize-build-space
if: ${{ matrix.config.name == 'Linux' }}
run: |
git clone -b v7 https://github.com/easimon/maximize-build-space
- name: Maximize build space
if: ${{ matrix.config.name == 'Linux' }}
uses: ./maximize-build-space
with:
root-reserve-mb: 4096
swap-size-mb: 8192
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'

- name: Checkout
uses: actions/checkout@v3
with:
Expand All @@ -174,7 +191,7 @@ jobs:
sudo DEBIAN_FRONTEND=noninteractive apt install --yes ${{ matrix.config.packages }}
mkdir -p "${DEFAULT_DIR}"
wget https://github.com/amosbird/ldb_toolchain_gen/releases/download/v0.17/ldb_toolchain_gen.sh \
wget https://github.com/amosbird/ldb_toolchain_gen/releases/download/v0.18/ldb_toolchain_gen.sh \
-q -O /tmp/ldb_toolchain_gen.sh
bash /tmp/ldb_toolchain_gen.sh "${DEFAULT_DIR}/ldb-toolchain"
fi
Expand Down

0 comments on commit 5dd3955

Please sign in to comment.