Force libcxx >= 20.0 #86
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow builds and publishes the conda package to the Numerics88 channel | |
| # using the openalea/action-build-publish-anaconda action. | |
| name: Conda Build And Publish | |
| on: | |
| push: | |
| branches: | |
| - kean/ci | |
| workflow_dispatch: | |
| jobs: | |
| build-and-publish: | |
| name: Conda deployment | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| # OS types: Windows x64, macOS 13 (last intel based runner), macOS latest (Apple silicon), and Ubuntu x64 | |
| # ------------------------------------------------------ | |
| os: ["macos-13", "macos-latest"] | |
| python-minor-version: [12] | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: kean/ci | |
| fetch-depth: 0 | |
| # This was needed for <VTK 9.0. Remove if no longer needed | |
| - name: Download OSX 11.1 SDK tar and extract to /Library/Developer/CommandLineTools/SDKs | |
| if: startsWith(matrix.os, 'macos-13') | |
| run: | | |
| sudo mkdir -p /Library/Developer/CommandLineTools/SDKs | |
| sudo chown -R $USER /Library/Developer/CommandLineTools/SDKs | |
| curl -L https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX11.1.sdk.tar.xz -o MacOSX11.1.sdk.tar.xz | |
| tar -xJf MacOSX11.1.sdk.tar.xz -C /Library/Developer/CommandLineTools/SDKs | |
| - name: Set CONDA_BUILD_SYSROOT dynamically | |
| if: startsWith(matrix.os, 'macos-13') | |
| run: | | |
| echo "CONDA_BUILD_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk" >> $GITHUB_ENV | |
| echo "CONDA_BUILD_SYSROOT:" >> ./conda-recipe/vtkbone/conda_build_config.yaml | |
| echo " - /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk" >> ./conda-recipe/vtkbone/conda_build_config.yaml | |
| - name: (Debug) Print conda_build_config.yaml | |
| run: | | |
| echo "CONDA_BUILD_SYSROOT:" | |
| cat ./conda-recipe/vtkbone/conda_build_config.yaml | |
| echo "CONDA_BUILD_SYSROOT:" | |
| echo $CONDA_BUILD_SYSROOT | |
| - name: Setup Conda | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| python-version: 3.${{ matrix.python-minor-version }} | |
| environment-file: conda-recipe/vtkbone/environment.yml | |
| auto-update-conda: false | |
| auto-activate-base: false | |
| show-channel-urls: true | |
| - name: Install conda-build & anaconda-client | |
| run: | | |
| conda install -y conda-build anaconda-client | |
| - name: Build Conda package with environemnt.yaml | |
| run: | | |
| source $CONDA/etc/profile.d/conda.sh | |
| conda env create -f conda-recipe/vtkbone/environment.yml | |
| conda activate n88 | |
| conda build conda-recipe/vtkbone \ | |
| -c friedchickean -c defaults \ | |
| --python 3.${{ matrix.python-minor-version }} \ | |
| --output-folder build_artifacts | |
| # - name: Build and publish | |
| # uses: openalea/[email protected] | |
| # with: | |
| # conda: conda-recipe/vtkbone | |
| # mamba: false | |
| # python: ${{ matrix.python-minor-version }} | |
| # numpy: '22' | |
| # channels: friedchickean, defaults | |
| # token: ${{ secrets.KEAN_CONDA_TOKEN }} | |
| # publish: true | |
| # label: main | |