diff --git a/.github/workflows/test-gb-25.yml b/.github/workflows/test-gb-25.yml index d88b9f879..2c427de5f 100644 --- a/.github/workflows/test-gb-25.yml +++ b/.github/workflows/test-gb-25.yml @@ -99,21 +99,28 @@ jobs: - name: Load Julia packages from cache id: julia-cache uses: julia-actions/cache@v2 - - name: Build local libReactant - timeout-minutes: 60 + - name: Modify Enzyme-JAX commit + timeout-minutes: 1 run: | - # Modify commit Enzyme-JAX commit sed -i.bak 's/ENZYMEXLA_COMMIT = ".*"/ENZYMEXLA_COMMIT = "${{ github.sha }}"/' ReactantExtra/WORKSPACE - # Modify XLA commit + cat ReactantExtra/WORKSPACE + working-directory: ${{ env.REACTANT_DIR }}/deps + - name: Modify XLA commit + timeout-minutes: 1 + shell: bash + run: | if [[ -n "${{ matrix.xla_commit }}" ]]; then sed -E -i.bak \ - -e 's?load\("@jax//third_party/xla:revision.bzl", "XLA_COMMIT", "XLA_SHA256"\)??' \ - -e 's/(# )?XLA_COMMIT = ".*"/XLA_COMMIT = "0123456789abcdef0123456789abcdef01234567"/' \ - -e 's/(# )?XLA_SHA256 = ""/XLA_SHA256 = ""/' \ + -e 's/xla_workspace\(NEW_XLA_PATCHES(, .*)?\)/xla_workspace(NEW_XLA_PATCHES, "${{ matrix.xla_commit }}")/' \ ReactantExtra/WORKSPACE - fi + cat ReactantExtra/WORKSPACE + fi + working-directory: ${{ env.REACTANT_DIR }}/deps + - name: Build local libReactant + timeout-minutes: 60 + run: | julia --project --color=yes -e 'using Pkg; Pkg.instantiate()' julia --project --color=yes -O0 build_local.jl --cc=clang --gcc_host_compiler_path= working-directory: ${{ env.REACTANT_DIR }}/deps