Merge pull request #36 from diffCheckOrg/test_suite #5
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 | |
- 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/ |