Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/scripts/install_deps.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh -e

LIBIIO_VERSION=libiio-v0
LIBIIO_VERSION=main
PACKAGE_DIR=${1-build}
echo $PACKAGE_DIR

Expand All @@ -9,7 +9,7 @@ echo "## Installing dependencies"

yum install -y bzip2 gzip rpm rpm-build git wget tar \
libxml2-devel libusbx-devel libusb-devel doxygen libaio-devel avahi-devel avahi-tools graphviz swig flex bison \
python3 python3-devel python3-setuptools python3-pip
python3 python3-devel python3-setuptools python3-pip libzstd-devel

python3 -m pip install cmake
cmake --version
Expand All @@ -27,9 +27,9 @@ cd ../..

#Install glog
echo "## Building glog"
git clone --branch v0.4.0 --depth 1 https://github.com/google/glog
mkdir -p glog/build_0_4_0
cd glog/build_0_4_0
git clone --branch v0.7.1 --depth 1 https://github.com/google/glog
mkdir -p glog/build_0_7_1
cd glog/build_0_7_1
cmake -DCMAKE_PREFIX_PATH=/usr ..
make
make install
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Build

on: [push, pull_request]

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"

# TODO: add a simple test that tries to import the libm2k package after creating wheel;
# NOTE: do i have a acces to a pip install during the cybuildwheel process?
jobs:
Expand All @@ -15,8 +18,8 @@ jobs:
python_version: ['3.11']

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
name: Install Python ${{ matrix.python_version }}
with:
python-version: ${{ matrix.python_version }}
Expand All @@ -31,7 +34,7 @@ jobs:
python -m pip install cibuildwheel twine
cibuildwheel --output-dir ${{ github.workspace }}/wheelhouse ${{ github.workspace }}/build
env:
CIBW_DEBUG_KEEP_CONTAINER=: TRUE
CIBW_DEBUG_KEEP_CONTAINER: "TRUE"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28
# Skip building PyPy wheels on all platforms
Expand All @@ -41,9 +44,9 @@ jobs:
CIBW_BUILD_VERBOSITY: 3
CIBW_BEFORE_ALL: >
cd {project} && ./.github/scripts/install_deps.sh {package}
CIBW_BUILD: "cp37-* cp38-* cp39-* cp310-* cp311-* cp312-*"
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-*"
CIBW_ENVIRONMENT: COMPILE_BINDINGS="True"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v7
with:
name: manylinux_wheels
path: ${{ github.workspace }}/wheelhouse
Expand All @@ -54,12 +57,12 @@ jobs:
needs: [build_wheels]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
name: Install Python 3.11
with:
python-version: '3.11'
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v7
with:
name: manylinux_wheels
- name: Upload to PyPI
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#

cmake_minimum_required(VERSION 3.1.3)
cmake_minimum_required(VERSION 3.10)

if(NOT ${CMAKE_VERSION} VERSION_LESS "3.18.0")
# https://cmake.org/cmake/help/v3.18/policy/CMP0068.html
Expand Down
2 changes: 1 addition & 1 deletion bindings/csharp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.7)
cmake_minimum_required(VERSION 3.10)

set(CSHARP_WRAPPER_DLL ${PROJECT_NAME}-sharp-cxx-wrap)

Expand Down
2 changes: 1 addition & 1 deletion bindings/labview/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1.3)
cmake_minimum_required(VERSION 3.10)
set (CMAKE_CXX_STANDARD 11)
#Find libiio and link it to the targets generated by this project

Expand Down
2 changes: 1 addition & 1 deletion bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.7)
cmake_minimum_required(VERSION 3.10)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE INTERNAL "")
set(CMAKE_VERBOSE_MAKEFILE ON)
Expand Down
3 changes: 2 additions & 1 deletion bindings/python/setup.py.cmakein
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ if compile_bindings:
'${IIO_INCLUDE_DIRS}'],
define_macros=[('HAS_CONSTEXPR', '1'),
('_EXCEPTIONS', '1'),
('_libm2k_EXPORTS', None)],
('_libm2k_EXPORTS', None),
('LIBIIO_V1', None)],
extra_compile_args=[${EXTRA_COMPILE_FLAGS}],
extra_link_args=[${EXTRA_LINK_FLAGS}],
library_dirs=['${CMAKE_BINARY_DIR}', '${IIO_LIBRARY_DIR}'],
Expand Down
2 changes: 1 addition & 1 deletion doc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1.3)
cmake_minimum_required(VERSION 3.10)
project(doc)

find_program(DOXYGEN_PATH doxygen)
Expand Down
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1.3)
cmake_minimum_required(VERSION 3.10)

add_subdirectory(analog)
add_subdirectory(digital)
Expand Down
2 changes: 1 addition & 1 deletion examples/analog/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1.3)
cmake_minimum_required(VERSION 3.10)
set (CMAKE_CXX_STANDARD 11)
project(analog LANGUAGES CXX)

Expand Down
2 changes: 1 addition & 1 deletion examples/digital/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1.3)
cmake_minimum_required(VERSION 3.10)
set (CMAKE_CXX_STANDARD 11)
project(digital LANGUAGES CXX)

Expand Down
2 changes: 1 addition & 1 deletion examples/powersupply/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1.3)
cmake_minimum_required(VERSION 3.10)
set (CMAKE_CXX_STANDARD 11)
project(powersupply LANGUAGES CXX)

Expand Down
2 changes: 1 addition & 1 deletion examples/voltmeter/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1.3)
cmake_minimum_required(VERSION 3.10)
set (CMAKE_CXX_STANDARD 11)
project(voltmeter LANGUAGES CXX)

Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1.3)
cmake_minimum_required(VERSION 3.10)

option(OSX_PACKAGE "Create OSX package" OFF)
set(BUILD_SHARED_LIBS ON CACHE BOOL "Build shared libraries")
Expand Down
2 changes: 1 addition & 1 deletion tools/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1.3)
cmake_minimum_required(VERSION 3.10)

add_subdirectory(m2kcli)
add_subdirectory(communication/examples)
2 changes: 1 addition & 1 deletion tools/communication/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1.3)
cmake_minimum_required(VERSION 3.10)

add_subdirectory(spi)
add_subdirectory(i2c)
Expand Down
2 changes: 1 addition & 1 deletion tools/communication/examples/i2c/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1.3)
cmake_minimum_required(VERSION 3.10)

set(CMAKE_CXX_STANDARD 11)

Expand Down
2 changes: 1 addition & 1 deletion tools/communication/examples/spi/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1.3)
cmake_minimum_required(VERSION 3.10)

set(CMAKE_CXX_STANDARD 11)

Expand Down
2 changes: 1 addition & 1 deletion tools/communication/examples/uart/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1.3)
cmake_minimum_required(VERSION 3.10)

set(CMAKE_CXX_STANDARD 11)

Expand Down
2 changes: 1 addition & 1 deletion tools/m2kcli/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# * */

cmake_minimum_required(VERSION 3.1.3)
cmake_minimum_required(VERSION 3.10)

set(CMAKE_CXX_STANDARD 11)

Expand Down
Loading