forked from diffCheckOrg/diffCheck
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (38 loc) · 1.13 KB
/
pypi-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
42
43
44
45
46
47
48
49
name: "pypi-build"
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
BUILD_TYPE: Release
VCPKG_FILE: c:/vcpkg/scripts/buildsystems/vcpkg.cmake
jobs:
pypi_build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup conda environment
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.9.1
- name: Create diff_check conda environment
run: conda env create -f environment.yml
- name: Activate diff_check conda environment
run: conda activate diff_check
- name: Cmake Configure
run: |
cmake -S . -B build -A x64 -DBUILD_PYTHON_MODULE=ON
- name: CMake Build
run: ${{github.workspace}}/cmake/build.bat
- name: Build wheel
run: |
cd ${{github.workspace}}/src/gh/diffCheck/
python setup.py bdist_wheel
cd ${{github.workspace}}
- name: Upload wheel
uses: actions/upload-artifact@v2
with:
name: wheel
path: ${{github.workspace}}/src/gh/diffCheck/dist/