ci-ifcopenshell-conda-daily #181
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: ci-ifcopenshell-conda-daily | |
on: | |
push: | |
paths: | |
- .github/workflows/ci-ifcopenshell-conda-daily.yml | |
schedule: | |
# ┌───────────── minute (0 - 59) | |
# │ ┌───────────── hour (0 - 23) | |
# │ │ ┌───────────── day of the month (1 - 31) | |
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | |
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | |
# * * * * * | |
- cron: "49 23 * * *" # 11min before utc midnight every day | |
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: py310, distver: '3.10'}, | |
{ name: py311, distver: '3.11'} | |
] | |
platform: [ | |
{ name: Windows, distver: windows-2022, upload: 'true' }, | |
{ name: Linux, distver: ubuntu-22.04, upload: 'true' }, | |
{ name: macOS, distver: macos-12, upload: 'true' } | |
] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Download 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: conda-incubator/setup-miniconda@v2 # https://github.com/conda-incubator/setup-miniconda | |
with: | |
activate-environment: conda-build | |
python-version: ${{ matrix.pyver.distver }} | |
environment-file: conda/environment.yml | |
- name: build, test and upload ifcopenshell | |
if: ${{ matrix.platform.upload == 'true' }} | |
run: | | |
conda-build . --python ${{ matrix.pyver.distver }} -c conda-forge --token ${{ secrets.ANACONDA_TOKEN }} --user ifcopenshell | |
working-directory: ./conda | |
- name: build & test ifcopenshell | |
if: ${{ matrix.platform.upload == 'false' }} | |
run: | | |
conda-build . --python ${{ matrix.pyver.distver }} -c conda-forge | |
working-directory: ./conda |