Skip to content

Commit ff83d93

Browse files
committed
Limit LMDB memory usage on arm
1 parent 71e80dc commit ff83d93

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/pants.yaml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ jobs:
1616
# Replace with your profile label https://namespace.so/docs/features/faster-github-actions#using-runner-profiles
1717
- namespace-profile-amd64-with-caching
1818
- namespace-profile-arm64-with-caching
19-
# - ubuntu-22.04
20-
# - ubuntu-22.04-arm
2119
python-version: [3.9]
2220
fail-fast: false
2321
runs-on: ${{ matrix.runner }}
@@ -40,21 +38,15 @@ jobs:
4038
with:
4139
python-version: ${{ matrix.python-version }}
4240

43-
# - uses: pantsbuild/actions/init-pants@v8
44-
# with:
45-
# gha-cache-key: v0
46-
# named-caches-hash: ${{ hashFiles('python-default.lock') }}
47-
# pants-ci-config: "['pants.toml', '/tmp/pants.toml']"
41+
- name: Limit LMDB memory usage
42+
if: runner.arch == 'ARM64'
43+
run: echo "PANTS_LOCAL_STORE_PROCESSES_MAX_SIZE_BYTES=536870912" >> $GITHUB_ENV
4844

49-
- name: Manual install
50-
env:
51-
# PANTS_LOCAL_STORE_SHARD_COUNT: 1
52-
PANTS_LOCAL_STORE_PROCESSES_MAX_SIZE_BYTES: 536870912
53-
run: |
54-
curl --proto '=https' --tlsv1.2 -fsSL https://static.pantsbuild.org/setup/get-pants.sh | bash
55-
which -a pants
56-
57-
pants --print-stacktrace -ldebug --version
45+
- uses: pantsbuild/actions/init-pants@v8
46+
with:
47+
gha-cache-key: v0
48+
named-caches-hash: ${{ hashFiles('python-default.lock') }}
49+
pants-ci-config: "['pants.toml', '/tmp/pants.toml']"
5850

5951
- name: Check BUILD files
6052
run: |

0 commit comments

Comments
 (0)