FIX-MERGE: linter fixes + merge from eleni's branch #8
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: "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 -DBUILD_TESTS=OFF -DRUN_TESTS=OFF | |
- name: CMake Build | |
run: cmake --build build --config Release | |
#FIXME: here we are probably missing to copy the dlls and pyds before building the wheel | |
- 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/ |