Skip to content

liufang-robot Windows python build #48

liufang-robot Windows python build

liufang-robot Windows python build #48

name: Windows python build
run-name: ${{ github.actor }} Windows python build
on:
workflow_dispatch:
pull_request:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
pull-requests: read
jobs:
windows_python_build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Check cmake
run: cmake --version
- name: Install python-dev-tools
run: python.exe -m pip install python-dev-tools markdown
# - uses: msys2/setup-msys2@v2
# with:
# update: true
# install: >-
# base-devel
# mingw-w64-x86_64-python3
- name: Configure
run: cmake -S. -Bbuild -G "Visual Studio 17 2022" -DBUILD_PYTHON=ON -DBUILD_DOCUMENTATION=OFF
- name: Build
run: cmake --build build --config release
- name: Upload windows wheel
uses: actions/upload-artifact@v4
id: artifact
with:
name: lebai-win-x64-whl
path: build/python/dist/*.whl