Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions .github/workflows/pants.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- uses: actions/setup-python@v5
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- uses: crazy-max/ghaction-setup-docker@v3
- uses: docker/setup-docker-action@v4
with:
daemon-config: |
{
Expand All @@ -49,14 +49,8 @@ jobs:
uses: docker/setup-qemu-action@v3
with:
platforms: linux/amd64,linux/arm64

- name: Set up environment variables for Pants (Docker) to use GHA Cache
uses: actions/github-script@v7
with:
script: |
core.exportVariable("ACTIONS_CACHE_URL", process.env.ACTIONS_CACHE_URL || "");
core.exportVariable("ACTIONS_RUNTIME_TOKEN", process.env.ACTIONS_RUNTIME_TOKEN || "");

- name: Expose ACTIONS_* env vars to Pants, so it can use the GHA cache
uses: crazy-max/ghaction-github-runtime@v3
- uses: pantsbuild/actions/init-pants@v9
# This action bootstraps pants and manages 2-3 GHA caches.
# See: github.com/pantsbuild/actions/tree/main/init-pants/
Expand All @@ -81,7 +75,6 @@ jobs:

- name: Bootstrap Pants
run: pants --version

- name: Check Pants config files
run: pants tailor --check update-build-files --check '::'

Expand Down
3 changes: 2 additions & 1 deletion pants.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ use_rust_parser = true

[docker]
env_vars = [
"ACTIONS_CACHE_URL",
"ACTIONS_RESULTS_URL",
"ACTIONS_RUNTIME_TOKEN",
"ACTIONS_CACHE_SERVICE_V2",
"DYNAMIC_TAG",
]
use_buildx=true
Loading