From b8c3c7c68dac0a6d0e9037a058e20a2dfc49cc64 Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Tue, 21 May 2024 15:44:51 +0200 Subject: [PATCH] ci: Avoid cxx-compiler activation script to overwrite CC and CXX variables --- .github/workflows/ci-windows.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml index 2bc4158..44ebea4 100644 --- a/.github/workflows/ci-windows.yml +++ b/.github/workflows/ci-windows.yml @@ -10,8 +10,6 @@ env: jobs: build: runs-on: ${{ matrix.os }} - env: - BUILD_CPPAD_CODEGEN: OFF strategy: fail-fast: true @@ -44,10 +42,14 @@ jobs: - name: Build PyCppAD shell: cmd /C CALL {0} - env: - CC: ${{ matrix.compiler.cmd }} - CXX: ${{ matrix.compiler.cmd }} run: | + :: Set compiler to use. + :: This must be done here and not in env since + :: cxx-compiler activation script set this variable + :: and is called before. + set CC=${{ matrix.compiler.cmd }} + set CXX=${{ matrix.compiler.cmd }} + :: Create build directory mkdir build pushd build