Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Scientific Software
CrysFML
Commits
3543b475
Unverified
Commit
3543b475
authored
Jul 15, 2021
by
Simon Ward
Browse files
Compile all versions
parent
91a53a72
Changes
2
Show whitespace changes
Inline
Side-by-side
.github/workflows/build_variants.yml
View file @
3543b475
...
@@ -6,62 +6,62 @@ on:
...
@@ -6,62 +6,62 @@ on:
branches
:
[
simon
]
branches
:
[
simon
]
jobs
:
jobs
:
#
create-Linux:
create-Linux
:
#
runs-on: ubuntu-latest
runs-on
:
ubuntu-latest
#
#
steps:
steps
:
#
- uses: actions/checkout@v2
-
uses
:
actions/checkout@v2
#
#
- name: Build manylinux wheels
-
name
:
Build manylinux wheels
#
run: docker run -e PLAT=manylinux2010_x86_64 -v `pwd`:/io quay.io/pypa/manylinux2010_x86_64 /io/Scripts/buildscript.sh
run
:
docker run -e PLAT=manylinux2010_x86_64 -v `pwd`:/io quay.io/pypa/manylinux2010_x86_64 /io/Scripts/buildscript.sh
#
#
- uses: actions/upload-artifact@v2
-
uses
:
actions/upload-artifact@v2
#
with:
with
:
#
name: CrysFML - Linux
name
:
CrysFML - Linux
#
path: ${{ github.workspace }}/dist/*.whl
path
:
${{ github.workspace }}/dist/*.whl
#
#
create-OSX:
create-OSX
:
#
strategy:
strategy
:
#
max-parallel: 4
max-parallel
:
4
#
matrix:
matrix
:
#
python-version: ['3.6', '3.7', '3.8', '3.9']
python-version
:
[
'
3.6'
,
'
3.7'
,
'
3.8'
,
'
3.9'
]
#
os: [macos-10.15]
os
:
[
macos-10.15
]
#
gcc_v: [ 10 ] # Version of GFortran we want to use.
gcc_v
:
[
10
]
# Version of GFortran we want to use.
#
# exclude: # Currently only python > 3.8 is supported on macos-11.0 and > 3.6 on macos-10.15
# exclude: # Currently only python > 3.8 is supported on macos-11.0 and > 3.6 on macos-10.15
#
# - os: macos-11.0
# - os: macos-11.0
#
# python-version: '3.7'
# python-version: '3.7'
#
# - os: macos-11.0
# - os: macos-11.0
#
# python-version: '3.8'
# python-version: '3.8'
#
#
runs-on: ${{ matrix.os }}
runs-on
:
${{ matrix.os }}
#
#
steps:
steps
:
#
- uses: actions/checkout@v2
-
uses
:
actions/checkout@v2
#
#
- name: Setup python
-
name
:
Setup python
#
uses: actions/setup-python@v1
uses
:
actions/setup-python@v1
#
with:
with
:
#
python-version: ${{matrix.python-version}}
python-version
:
${{matrix.python-version}}
#
#
- name: Install cmake
-
name
:
Install cmake
#
run: pip3 install cmake delocate wheel
run
:
pip3 install cmake delocate wheel
#
#
- name: Build CFML (OSX)
-
name
:
Build CFML (OSX)
#
env:
env
:
#
FC: gfortran-${{ matrix.gcc_v }}
FC
:
gfortran-${{ matrix.gcc_v }}
#
CC: gcc-${{ matrix.gcc_v }}
CC
:
gcc-${{ matrix.gcc_v }}
#
run: |
run
:
|
#
pip3 wheel ./ --no-deps -w ./dist/
pip3 wheel ./ --no-deps -w ./dist/
#
delocate-wheel -w fixed_wheels -v ./dist/*.whl
delocate-wheel -w fixed_wheels -v ./dist/*.whl
#
#
- uses: actions/upload-artifact@v2
-
uses
:
actions/upload-artifact@v2
#
with:
with
:
#
name: CrysFML - ${{ matrix.os }} - Python ${{ matrix.python-version }}
name
:
CrysFML - ${{ matrix.os }} - Python ${{ matrix.python-version }}
#
path: ./fixed_wheels/*.whl
path
:
./fixed_wheels/*.whl
create-Windows
:
create-Windows
:
strategy
:
strategy
:
max-parallel
:
1
max-parallel
:
4
matrix
:
matrix
:
python-version
:
[
'
3.6'
,
'
3.7'
,
'
3.8'
,
'
3.9'
,
'
3.10'
]
python-version
:
[
'
3.6'
,
'
3.7'
,
'
3.8'
,
'
3.9'
,
'
3.10'
]
os
:
[
windows-latest
]
os
:
[
windows-latest
]
...
...
Python_API/Src/CMakeLists.txt
View file @
3543b475
...
@@ -37,13 +37,7 @@ find_package(Python3 COMPONENTS Interpreter Development)
...
@@ -37,13 +37,7 @@ find_package(Python3 COMPONENTS Interpreter Development)
set
(
PYTHON_INTERPRETER_PATH
${
Python3_EXECUTABLE
}
)
set
(
PYTHON_INTERPRETER_PATH
${
Python3_EXECUTABLE
}
)
if
(
WIN32 OR MSYS
)
if
(
WIN32 OR MSYS
)
# FIND_PACKAGE(PythonLibs REQUIRED)
# set(PYTHON_LIBRARY_PATH ${PYTHON_LIBRARIES})
# message(STATUS ${PYTHON_LIBRARY_PATH})
# add_library(Python3_LIB STATIC IMPORTED)
# set_property(TARGET Python3_LIB PROPERTY IMPORTED_LOCATION ${Python3::Python})
target_link_libraries
(
${
LIBRARY_NAME
}
Python3::Python
)
target_link_libraries
(
${
LIBRARY_NAME
}
Python3::Python
)
endif
()
endif
()
# Set -Wl,-undefined,dynamic_lookup to OTHER_LDFLAGS
# Set -Wl,-undefined,dynamic_lookup to OTHER_LDFLAGS
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment