v0.0.1alpha0 - #1
Merged
Merged
Conversation
Owner
Author
name: Build & Test
on:
pull_request:
jobs:
build_wheels:
name: Build wheels for cp${{ matrix.python }}-${{ matrix.platform_id }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
# - os: ubuntu-latest
# python: 312
# platform_id: manylinux_x86_64
# - os: macos-latest
# python: 312
# platform_id: macosx_arm64
# macos_target: 14
- os: windows-latest
python: 312
platform_id: win_amd64
steps:
- name: Provide gfortran (MacOS)
uses: fortran-lang/setup-fortran@v1
if: runner.os == 'MacOS'
with:
compiler: gcc
- name: Provide gfortran (Windows)
uses: msys2/setup-msys2@v2
if: runner.os == 'Windows'
id: msys2
with:
update: true
cache: true
path-type: inherit
install: >-
mingw-w64-x86_64-openblas
mingw-w64-x86_64-gcc-fortran
- name: Show PATH (Windows)
if: runner.os == 'Windows'
run: dir "D:/a/_temp/msys64/mingw64/bin"
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- uses: pypa/cibuildwheel@v3.1.1
env:
CIBW_ARCHS: all
CIBW_BUILD_VERBOSITY: 1
CIBW_BEFORE_ALL_MACOS: "brew install openblas"
CIBW_BEFORE_ALL_LINUX: "yum install -y openblas-devel"
CIBW_BEFORE_ALL_WINDOWS: "set PATH=D:\\a\\_temp\\msys64\\mingw64\\bin;%PATH%"
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos_target }}.0
- run: ls -l wheelhouse/*
build_wheels_for_windows:
name: Build wheels for cp${{ matrix.python }}-${{ matrix.platform_id }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
python: 312
platform_id: win_amd64
steps:
- name: Provide gfortran (Windows)
# https://github.com/actions/runner-images/discussions/7998
uses: msys2/setup-msys2@v2
if: runner.os == 'Windows'
id: msys2
with:
update: true
cache: true
path-type: inherit
install: >-
mingw-w64-x86_64-openblas
mingw-w64-x86_64-gcc-fortran
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- run: |
uv build --wheel
ls -l dist/*
shell: msys2 {0}MSYS path varibles can not pass to cibuildwheel ??? |
Owner
Author
|
use pipx run can use msys env in cibuildwheel |
Owner
Author
|
test not passed on windows: ============================= test session starts =============================
platform win32 -- Python 3.12.10, pytest-8.4.1, pluggy-1.6.0
rootdir: D:\a\PyGFNFF\PyGFNFF
configfile: pyproject.toml
collected 1 item
..\..\..\..\..\..\PyGFNFF\PyGFNFF\tests\test_coffeine.py F
================================== FAILURES ===================================pygfnff tree: PyGFNFF nparray ± tree .venv/lib/python3.12/site-packages/pygfnff
.venv/lib/python3.12/site-packages/pygfnff
└── _pygfnfflib.cpython-312-darwin.so
1 directory, 1 file |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.