-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
33 additions
and
34 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,8 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# CC: clang-cl | ||
# CXX: clang-cl | ||
CC: msvc | ||
CXX: msvc | ||
# LDFLAGS: "-Wl,-S" | ||
strategy: | ||
fail-fast: false | ||
|
@@ -36,10 +36,10 @@ jobs: | |
# platform: x64 | ||
# - name: Setup MSVC | ||
# uses: ilammy/[email protected] | ||
# - name: Prepare MSVC | ||
# uses: bus1/cabuild/action/msdevshell@v1 | ||
# with: | ||
# architecture: x64 | ||
- name: Setup MSVC | ||
uses: bus1/cabuild/action/msdevshell@v1 | ||
with: | ||
architecture: x64 | ||
# - name: Install Clang with OpenMP support using Chocolatey | ||
# run: | | ||
# choco install -y llvm --params "clang;compiler=clang" --version 13.0.0 | ||
|
@@ -68,22 +68,13 @@ jobs: | |
- name: Build a wheel | ||
run: | | ||
python -m pip wheel . --no-deps --wheel-dir dist | ||
# $GITHUB_WORKSPACE/wheelhouse . | ||
# delvewheel repair -w dist -v wheelhouse/*.whl | ||
# python -m build --wheel | ||
# $env:wheel_name=Get-ChildItem -Path dist/* -Include *.whl | ||
# delvewheel repair -w dist $env:wheel_name | ||
- name: Repair the wheel | ||
run: | | ||
delvewheel repair dist/*.whl | ||
# bash tools/repair_windows.sh | ||
delvewheel repair dist/*.whl | ||
- name: Uninstall the package | ||
run: | | ||
python -m pip uninstall primate -y | ||
- name: Install the wheel | ||
# python -m pip install $(find "$output_dir" -type f | grep *primate*.whl) | ||
# python -m pip install $env:wheel_name | ||
run: | | ||
python -m pip install dist/*.whl | ||
pip install delvewheel | ||
|
@@ -95,8 +86,16 @@ jobs: | |
run: | | ||
python -m pytest tests/ --cov=primate --benchmark-skip | ||
coverage report -m | ||
# - name: Make wheel w/ delvewheel | ||
# run: | | ||
# bash ./tools/repair_windows.sh | ||
# output_dir="$(mktemp -d)" | ||
# python -m pip wheel . --no-deps --wheel-dir "$output_dir" | ||
# - name: Make wheel w/ delvewheel | ||
# python -m pip install $(find "$output_dir" -type f | grep *primate*.whl) | ||
# python -m pip install $env:wheel_name | ||
# run: | | ||
# bash ./tools/repair_windows.sh | ||
# output_dir="$(mktemp -d)" | ||
# python -m pip wheel . --no-deps --wheel-dir "$output_dir" | ||
# $GITHUB_WORKSPACE/wheelhouse . | ||
# delvewheel repair -w dist -v wheelhouse/*.whl | ||
# python -m build --wheel | ||
# $env:wheel_name=Get-ChildItem -Path dist/* -Include *.whl | ||
# delvewheel repair -w dist $env:wheel_name |
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
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