diff --git a/.github/workflows/asan.yaml b/.github/workflows/asan.yaml index d261ba3a09c2..d49c00919ed4 100644 --- a/.github/workflows/asan.yaml +++ b/.github/workflows/asan.yaml @@ -25,6 +25,17 @@ jobs: run: shell: bash -l {0} steps: + # Install git before actions/checkout as otherwise it will download the code + # with the GitHub REST API and therefore any subsequent git commands will fail. + - name: Install clang 18 + env: + DEBIAN_FRONTEND: noninteractive + run: | + apt update + apt install -y clang-18 libstdc++-14-dev build-essential libssl-dev \ + zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl git \ + libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev \ + libffi-dev liblzma-dev - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: path: jax @@ -33,15 +44,6 @@ jobs: repository: python/cpython path: cpython ref: v3.13.0 - - name: Install clang 18 - env: - DEBIAN_FRONTEND: noninteractive - run: | - apt update - apt install -y clang-18 libstdc++-14-dev build-essential libssl-dev \ - zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl git \ - libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev \ - libffi-dev liblzma-dev - name: Build CPython with ASAN enabled env: ASAN_OPTIONS: detect_leaks=0