@@ -14,34 +14,43 @@ jobs:
1414 matrix :
1515 runner :
1616 # Replace with your profile label https://namespace.so/docs/features/faster-github-actions#using-runner-profiles
17- - namespace-profile-default
18- - namespace-profile-default- arm64
19- - ubuntu-22.04
20- - ubuntu-22.04-arm
17+ - namespace-profile-amd64-with-caching
18+ - namespace-profile-arm64-with-caching
19+ # - ubuntu-22.04
20+ # - ubuntu-22.04-arm
2121 python-version : [3.9]
2222 fail-fast : false
2323 runs-on : ${{ matrix.runner }}
2424 steps :
2525 - uses : actions/checkout@v4
26- # - name: Set up remote cache
27- # run: |
28- # nsc pants cache setup --pants-toml=/tmp/pants.toml
26+
27+ - name : Set up remote cache
28+ run : |
29+ nsc pants cache setup --pants-toml=/tmp/pants.toml
30+
31+ - name : Set up local cache
32+ uses : namespacelabs/nscloud-cache-action@v1
33+ with :
34+ path : |
35+ ~/.cache/pants/named_caches
36+ ~/.cache/pants/lmdb_store
37+ ~/.cache/nce
38+
2939 - uses : actions/setup-python@v5
3040 with :
3141 python-version : ${{ matrix.python-version }}
32- # - uses: pantsbuild/actions/init-pants@v8
33- # # This action bootstraps pants and manages 2-3 GHA caches.
34- # # See: github.com/pantsbuild/actions/tree/main/init-pants/
35- # with:
36- # gha-cache-key: v0
37- # named-caches-hash: ${{ hashFiles('python-default.lock') }}
38- # pants-ci-config: "['pants.toml', '/tmp/pants.toml']"
3942
40- - name : Manual install
41- run : |
42- curl --proto '=https' --tlsv1.2 -fsSL https://static.pantsbuild.org/setup/get-pants.sh | bash
43- which -a pants
44- PANTS_LOCAL_STORE_SHARD_COUNT=0 pants --print-stacktrace -ldebug --version
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']"
48+
49+ # - name: Manual install
50+ # run: |
51+ # curl --proto '=https' --tlsv1.2 -fsSL https://static.pantsbuild.org/setup/get-pants.sh | bash
52+ # which -a pants
53+ # PANTS_LOCAL_CACHE_DIR=/tmp/pants_cache pants --print-stacktrace -ldebug --version
4554
4655 - name : Check BUILD files
4756 run : |
0 commit comments