Merge pull request #39 from DLR-SC/bump-tigl3-version #198
This file contains 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
name: Build Conda Packages | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
env: | |
GH_HEAD_REF: ${{ github.head_ref }} | |
jobs: | |
build-conda-packages: | |
strategy: | |
fail-fast: false | |
matrix: | |
arch: ['x64'] | |
os: [windows-2019, ubuntu-20.04, macos-latest] | |
python: ['3.8', '3.9', '3.10', '3.11'] | |
exclude: | |
- arch: x86 | |
os: macos-latest | |
- arch: x86 | |
os: ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set git to use LF | |
run: | | |
git config --global core.autocrlf false | |
- uses: actions/checkout@v1 | |
with: | |
submodules: recursive | |
- name: Setup conda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
activate-environment: tigl-conda | |
miniconda-version: 'latest' | |
architecture: ${{ matrix.arch }} | |
python-version: ${{ matrix.python }} | |
channels: dlr-sc,dlr-sc/label/tigl-dev | |
- name: Install compiler (macos) | |
if: contains(matrix.os, 'macos') | |
shell: bash -l {0} | |
run: | | |
/usr/bin/curl -o MacOSX10.9.sdk.tar.xz -L https://github.com/phracker/MacOSX-SDKs/releases/download/10.13/MacOSX10.9.sdk.tar.xz | |
tar xf MacOSX10.9.sdk.tar.xz | |
sudo mv MacOSX10.9.sdk /opt/ | |
ls /opt | |
# removing swig 4.0.1 which shadows conda's swig 4.0.2 for some reason in ubuntu 20.04. Can be removed for ubuntu22.04 | |
- name: Swig workaround for ubuntu-20.04 | |
if: contains(matrix.os, 'ubuntu-20.04') | |
shell: bash -l {0} | |
run: sudo rm /usr/bin/swig4.0 | |
- name: Install requirements (ubuntu, macos) | |
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos') | |
shell: bash -l {0} | |
run: | | |
conda install -y conda-build gitpython anaconda-client mesa-dri-drivers-cos6-x86_64 | |
conda info -a | |
conda list | |
echo $PATH | |
- name: Install requirements (windows) | |
if: contains(matrix.os, 'windows') | |
shell: cmd /C call {0} | |
run: | | |
conda install -y conda-build gitpython anaconda-client | |
conda info -a | |
conda list | |
- name: build conda packages | |
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos') | |
shell: bash -l {0} | |
env: | |
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }} | |
run: | | |
python --version | |
python build_recipes.py | |
- name: build conda packages | |
if: contains(matrix.os, 'windows') | |
shell: cmd /C call {0} | |
env: | |
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }} | |
run: | | |
python --version | |
python build_recipes.py | |