@@ -17,14 +17,17 @@ jobs:
17
17
- namespace-profile-amd64-with-caching
18
18
- namespace-profile-arm64-with-caching
19
19
python-version : [3.9]
20
+ setup :
21
+ - manual
22
+ - init-pants-action
20
23
fail-fast : false
21
24
runs-on : ${{ matrix.runner }}
22
25
steps :
23
26
- uses : actions/checkout@v4
24
27
25
28
- name : Set up remote cache
26
29
run : |
27
- nsc pants cache setup --pants-toml=/tmp/ pants.toml
30
+ nsc pants cache setup --pants-toml=pants.cache .toml
28
31
29
32
- name : Set up local cache
30
33
uses : namespacelabs/nscloud-cache-action@v1
@@ -43,10 +46,17 @@ jobs:
43
46
run : echo "PANTS_LOCAL_STORE_PROCESSES_MAX_SIZE_BYTES=536870912" >> $GITHUB_ENV
44
47
45
48
- uses : pantsbuild/actions/init-pants@v8
49
+ if : matrix.setup == 'init-pants-action'
46
50
with :
47
51
gha-cache-key : v0
48
52
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
50
60
51
61
- name : Check BUILD files
52
62
run : |
0 commit comments