Merge branch 'IfcOpenShell:v0.7.0' into v0.7.0 #3
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: Publish-blenderbim-multiplatform | |
on: | |
push: | |
paths: | |
- '.github/workflows/ci-blenderbim-matrix.yml' | |
- 'src/blenderbim/**' | |
- 'src/ifcopenshell-python/ifcopenshell/**' | |
- 'src/bcf/src/bcf/**' | |
- 'src/ifcclash/ifcclash/**' | |
- 'src/ifccobie/**' | |
- 'src/ifcdiff/**' | |
- 'src/ifccsv/**' | |
- 'src/ifcpatch/ifcpatch/**' | |
- 'src/ifc4d/ifc4d/**' | |
- 'src/ifc5d/ifc5d/**' | |
- 'src/ifccityjson/**' | |
branches: | |
- v0.7.0 | |
env: | |
major: 0 | |
minor: 0 | |
name: blenderbim | |
jobs: | |
activate: | |
runs-on: ubuntu-latest | |
if: | | |
github.repository == 'IfcOpenShell/IfcOpenShell' | |
steps: | |
- name: Set env | |
run: echo ok go | |
build: | |
needs: activate | |
name: ${{ matrix.config.name }}-${{ matrix.pyver }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
pyver: [py39, py310, py311] | |
config: | |
- { | |
name: "Windows Build", | |
short_name: win, | |
} | |
- { | |
name: "Linux Build", | |
short_name: linux | |
} | |
- { | |
name: "MacOS Build", | |
short_name: macos | |
} | |
- { | |
name: "MacOS ARM Build", | |
short_name: macosm1 | |
} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 # https://github.com/actions/setup-python | |
with: | |
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified | |
python-version: '3.11' | |
- run: echo ${{ env.DATE }} | |
- name: Get current date | |
id: date | |
run: echo "::set-output name=date::$(date +'%y%m%d')" | |
- name: Compile | |
run: | | |
cp -r src/blenderbim src/blenderbim_${{ matrix.config.short_name }}_${{ matrix.pyver }} && | |
cd src/blenderbim_${{ matrix.config.short_name }}_${{ matrix.pyver }} && | |
make dist PLATFORM=${{ matrix.config.short_name }} PYVERSION=${{ matrix.pyver }} | |
- name: Upload Zip file to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: src/blenderbim_${{ matrix.config.short_name }}_${{ matrix.pyver }}/dist/blenderbim-${{steps.date.outputs.date}}-${{ matrix.pyver }}-${{ matrix.config.short_name }}.zip | |
asset_name: blenderbim-${{steps.date.outputs.date}}-${{ matrix.pyver }}-${{ matrix.config.short_name }}.zip | |
tag: "blenderbim-${{steps.date.outputs.date}}" | |
overwrite: true | |
body: "Daily developer testing build blenderbim-${{steps.date.outputs.date}}" |