Skip to content

Commit

Permalink
fix: dev: install extra conda toolchain packages on windows
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen L Arnold <[email protected]>
  • Loading branch information
sarnold committed Mar 7, 2025
1 parent 26edc35 commit 4b835c3
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/conda-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
build_type: 'Debug'
extra_args: '-DBUILD_SHARED_LIBS=ON -DABC_USE_SONAME=ON'
- os: 'windows-2019'
generator: 'Ninja'
generator: 'MinGW Makefiles'
build_type: 'Debug'
extra_args: '-DBUILD_SHARED_LIBS=OFF -DABC_USE_NO_READLINE=ON -DVENDOR_GTEST=ON'
env:
Expand All @@ -42,6 +42,21 @@ jobs:
CMAKE_ARGS: ${{ matrix.use_namespace && '-DABC_USE_NAMESPACE=xxx' || '' }}

steps:
#- if: matrix.os == 'windows-2019'
#name: Install newer windows compiler
#id: install_cc
#uses: rlalik/setup-cpp-compiler@master
#with:
#compiler: g++-11.2.0

#- if: matrix.os == 'windows-2019'
#name: Use compiler
#shell: bash -l {0}
#env:
#CC: ${{ steps.install_cc.outputs.cc }}
#CXX: ${{ steps.install_cc.outputs.cxx }}
#run: |

- uses: actions/checkout@v4

- name: Setup base python
Expand All @@ -54,7 +69,7 @@ jobs:
uses: actions/cache@v4
env:
# Increase this value to reset cache if environment.devenv.yml has not changed
CACHE_NUMBER: 1
CACHE_NUMBER: 2
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.devenv.yml') }}
Expand All @@ -68,6 +83,13 @@ jobs:
channel-priority: flexible
conda-remove-defaults: true

- name: Add toolchain windows specific
if: contains( matrix.os, 'windows')
shell: bash -l {0}
run: |
conda install -y gcc m2-pkg-config
g++ --version
- name: Configure condadev environment
shell: bash -l {0}
env:
Expand Down

0 comments on commit 4b835c3

Please sign in to comment.