Skip to content

Commit afcef67

Browse files
nitins17Google-ML-Automation
authored andcommitted
Install git before actions/checkout
This fixes the workflow failing at "Build and install JAX" step as it wasn't able to run git command to fetch the `jaxlib` git hash Without git present on the PATH, it seems that `actions/checkout` (from its logs) will download the code with the GitHub REST API. This results in the code not being a git repository and therefore any subsequent git commands fail. PiperOrigin-RevId: 700518101
1 parent 10fdee3 commit afcef67

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/asan.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,8 @@ jobs:
2525
run:
2626
shell: bash -l {0}
2727
steps:
28-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
29-
with:
30-
path: jax
31-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
32-
with:
33-
repository: python/cpython
34-
path: cpython
35-
ref: v3.13.0
28+
# Install git before actions/checkout as otherwise it will download the code with the GitHub
29+
# REST API and therefore any subsequent git commands will fail.
3630
- name: Install clang 18
3731
env:
3832
DEBIAN_FRONTEND: noninteractive
@@ -42,6 +36,14 @@ jobs:
4236
zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl git \
4337
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev \
4438
libffi-dev liblzma-dev
39+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
40+
with:
41+
path: jax
42+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
43+
with:
44+
repository: python/cpython
45+
path: cpython
46+
ref: v3.13.0
4547
- name: Build CPython with ASAN enabled
4648
env:
4749
ASAN_OPTIONS: detect_leaks=0

0 commit comments

Comments
 (0)