mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
74 lines
2.4 KiB
YAML
74 lines
2.4 KiB
YAML
name: ci-ifcopenshell-conda-daily-v0.8.0
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- v0.8.0
|
|
|
|
jobs:
|
|
activate:
|
|
runs-on: ubuntu-latest
|
|
if: |
|
|
github.repository == 'IfcOpenShell/IfcOpenShell'
|
|
steps:
|
|
- name: Set env
|
|
run: echo ok go
|
|
|
|
test:
|
|
name: ${{ matrix.platform.distver }}-${{ matrix.pyver.name }}
|
|
needs: activate
|
|
runs-on: ${{ matrix.platform.distver }}
|
|
defaults:
|
|
run:
|
|
shell: bash -l {0}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
pyver: [
|
|
{ name: py311, distver: '3.11'},
|
|
{ name: py312, distver: '3.12'}
|
|
]
|
|
platform: [
|
|
{ name: win, distver: windows-latest, pkg_dir: 'win-64' },
|
|
{ name: linux, distver: ubuntu-latest, pkg_dir: 'linux-64' },
|
|
{ name: macOS, distver: macos-latest, pkg_dir: 'osx-64' }
|
|
]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Download and extract MacOSX SDK
|
|
if: ${{ matrix.platform.name == 'macOS' }}
|
|
run: |
|
|
curl -o MacOSX10.13.sdk.tar.xz -L https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.13.sdk.tar.xz && \
|
|
tar xf MacOSX10.13.sdk.tar.xz && \
|
|
sudo mv -v MacOSX10.13.sdk /opt/ && \
|
|
ls /opt/
|
|
- uses: seanmiddleditch/gha-setup-ninja@master
|
|
- uses: mamba-org/setup-micromamba@v1 # https://github.com/mamba-org/setup-micromamba
|
|
with:
|
|
environment-file: conda/environment.build.yml
|
|
create-args: >-
|
|
python=${{ matrix.pyver.distver }}
|
|
anaconda-client
|
|
|
|
- name: create conda package dist dir
|
|
run: |
|
|
mkdir -p ${{ github.workspace }}/dist
|
|
|
|
- name: build & test ifcopenshell
|
|
run: |
|
|
boa build . --python ${{ matrix.pyver.distver }} --no-remove-work-dir --output-folder '${{ github.workspace }}/dist'
|
|
working-directory: ./conda
|
|
|
|
- name: upload to anaconda
|
|
if: ${{ matrix.platform.name == 'win' }}
|
|
run: |
|
|
anaconda -t ${{ secrets.ANACONDA_TOKEN }} upload --force --user ifcopenshell '${{ github.workspace }}/dist/${{ matrix.platform.pkg_dir }}/*.tar.bz2'
|
|
|
|
- name: upload to anaconda
|
|
if: ${{ matrix.platform.name != 'win' }}
|
|
run: |
|
|
anaconda -t ${{ secrets.ANACONDA_TOKEN }} upload --force --user ifcopenshell ${{ github.workspace }}/dist/${{ matrix.platform.pkg_dir }}/*.tar.bz2 |