From a2a949473deadd0c1b0ca1b77f6b5d57034feb28 Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Tue, 26 Mar 2024 10:42:12 -0400 Subject: [PATCH] Run EnzymeTestUtils with assertions --- .github/workflows/CI.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index fb719bc0ab..1280d2c99b 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -157,7 +157,7 @@ jobs: with: file: lcov.info enzymetestutils: - name: EnzymeTestUtils - Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ matrix.libEnzyme }} libEnzyme - ${{ github.event_name }} + name: EnzymeTestUtils - Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ matrix.libEnzyme }} libEnzyme - assertions=${{ matrix.assertions }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} continue-on-error: ${{ matrix.version == 'nightly' }} env: @@ -175,13 +175,29 @@ jobs: - ubuntu-latest arch: - x64 + assertions: + - false + - true libEnzyme: [packaged] steps: - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@v1 + if: ${{ ! matrix.assertions }} with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} + - uses: actions/checkout@v3 + if: ${{ matrix.assertions }} + with: + repository: 'JuliaLang/julia' + ref: release-${{ matrix.version }} + path: 'julia' + - name: Compile Julia + if: ${{ matrix.assertions }} + run: | + sed -i.bak 's/exit 2/exit 0/g' julia/deps/tools/jlchecksum + make -C julia -j $(nproc) FORCE_ASSERTIONS=1 LLVM_ASSERTIONS=1 JULIA_PRECOMPILE=0 + echo $PWD/julia/usr/bin >> $GITHUB_PATH - uses: actions/cache@v1 env: cache-name: cache-artifacts