-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (40 loc) · 1.17 KB
/
windows_python_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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