Skip to content

Commit

Permalink
Change asan build to use a self-hosted runner and Ubuntu 24.04.
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkinsp committed Oct 3, 2024
1 parent ba4052d commit fee0942
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/asan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@ on:
pull_request: # Automatically trigger on pull requests affecting this file
branches:
- main
paths:
- '**workflows/asan.yml'

jobs:
upstream-dev:
runs-on: ubuntu-20.04-16core
asan:
runs-on: linux-x86-n2-64
container:
image: ubuntu:24.04
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
Expand All @@ -31,19 +29,19 @@ jobs:
path: cpython
ref: v3.12.6
- name: Install clang 18
env:
DEBIAN_FRONTEND: noninteractive
run: |
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
echo deb http://apt.llvm.org/focal/ llvm-toolchain-focal-18 main | sudo tee -a /etc/apt/sources.list
sudo apt update
sudo apt install clang-18 libstdc++-10-dev
sudo apt install clang-18 libstdc++-14-dev
- name: Build CPython with ASAN enabled
env:
ASAN_OPTIONS: detect_leaks=0
run: |
cd cpython
mkdir ${GITHUB_WORKSPACE}/cpythonasan
CC=clang-18 ./configure --prefix ${GITHUB_WORKSPACE}/cpythonasan --with-address-sanitizer --without-pymalloc
make -j16
make -j64
make install
${GITHUB_WORKSPACE}/cpythonasan/bin/python3 -m venv ${GITHUB_WORKSPACE}/venv
- name: Install JAX test requirements
Expand Down

0 comments on commit fee0942

Please sign in to comment.