mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-06 07:51:47 +00:00
fc97ccb6dc
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '7'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit 62f627ecc6)
62 lines
1.9 KiB
YAML
62 lines
1.9 KiB
YAML
name: ci-ifcconvert
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
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:
|
|
config:
|
|
- {
|
|
name: "Windows 64bit",
|
|
short_name: win64,
|
|
}
|
|
- {
|
|
name: "Linux 64bit",
|
|
short_name: linux64
|
|
}
|
|
- {
|
|
name: "MacOS Intel 64bit",
|
|
short_name: macos64
|
|
}
|
|
- {
|
|
name: "MacOS Silicon 64bit",
|
|
short_name: macosm164
|
|
}
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-python@v6 # https://github.com/actions/setup-python
|
|
with:
|
|
python-version: '3.11' # Version range or exact version of a Python version to use, using SemVer's version range syntax
|
|
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
|
|
- run: echo ${{ env.DATE }}
|
|
- name: Get current version
|
|
id: version
|
|
run: echo "version=$(cat VERSION)" >> $GITHUB_OUTPUT
|
|
- name: Compile
|
|
run: |
|
|
cd src/ifcopenshell-python &&
|
|
make zip-ifcconvert PLATFORM=${{ matrix.config.short_name }}
|
|
- name: Upload zip file to release
|
|
uses: svenstaro/upload-release-action@v2
|
|
with:
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
file: src/ifcopenshell-python/dist/ifcconvert-${{ steps.version.outputs.version }}-${{ matrix.config.short_name }}.zip
|
|
asset_name: ifcconvert-${{ steps.version.outputs.version }}-${{ matrix.config.short_name }}.zip
|
|
release_name: "ifcconvert-${{steps.version.outputs.version}}"
|
|
tag: "ifcconvert-${{steps.version.outputs.version}}"
|
|
overwrite: true
|