@@ -17,14 +17,17 @@ jobs:
1717 - namespace-profile-amd64-with-caching
1818 - namespace-profile-arm64-with-caching
1919 python-version : [3.9]
20+ setup :
21+ - manual
22+ - init-pants-action
2023 fail-fast : false
2124 runs-on : ${{ matrix.runner }}
2225 steps :
2326 - uses : actions/checkout@v4
2427
2528 - name : Set up remote cache
2629 run : |
27- nsc pants cache setup --pants-toml=/tmp/ pants.toml
30+ nsc pants cache setup --pants-toml=pants.cache .toml
2831
2932 - name : Set up local cache
3033 uses : namespacelabs/nscloud-cache-action@v1
@@ -43,10 +46,17 @@ jobs:
4346 run : echo "PANTS_LOCAL_STORE_PROCESSES_MAX_SIZE_BYTES=536870912" >> $GITHUB_ENV
4447
4548 - uses : pantsbuild/actions/init-pants@v8
49+ if : matrix.setup == 'init-pants-action'
4650 with :
4751 gha-cache-key : v0
4852 named-caches-hash : ${{ hashFiles('python-default.lock') }}
49- pants-ci-config : " ['pants.toml', '/tmp/pants.toml']"
53+ pants-ci-config : " ['pants.toml', 'pants.ci.toml', 'pants.cache.toml']"
54+
55+ - name : Install Pants manually
56+ if : matrix.setup == 'manual'
57+ run : |
58+ curl --proto '=https' --tlsv1.2 -fsSL https://static.pantsbuild.org/setup/get-pants.sh | bash
59+ echo "PANTS_CONFIG_FILES=['pants.toml','pants.ci.toml','pants.cache.toml']" >> $GITHUB_ENV
5060
5161 - name : Check BUILD files
5262 run : |
0 commit comments