Skip to content

Commit

Permalink
ci: Avoid cxx-compiler activation script to overwrite CC and CXX vari…
Browse files Browse the repository at this point in the history
…ables
  • Loading branch information
jorisv committed May 21, 2024
1 parent a52ec40 commit eb30018
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ env:
jobs:
build:
runs-on: ${{ matrix.os }}
env:
BUILD_CPPAD_CODEGEN: OFF

strategy:
fail-fast: true
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit eb30018

Please sign in to comment.