Skip to content

Bumped version to 2.4.6 #337

Bumped version to 2.4.6

Bumped version to 2.4.6 #337

Workflow file for this run

name: C/C++ CI
on: [push, pull_request]
jobs:
Linux:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: install dependencies
run: sudo apt-get install g++-9 autoconf-archive curl zlib1g-dev doxygen
- name: install liblo
run: curl -L -O https://downloads.sourceforge.net/project/liblo/liblo/0.31/liblo-0.31.tar.gz && tar -xzf liblo-0.31.tar.gz && cd liblo-0.31 && (./configure --host=$HOST --prefix=$PWD/inst --enable-static --disable-tests --disable-tools --disable-examples || (cat config.log; false)) && make install && find inst && cd ..
- name: autogen
run:
pwd
&& mkdir $PWD/inst
&& env NOCONFIGURE=1 am_opt=--copy ./autogen.sh
&& (./configure --enable-static --prefix=$PWD/inst PKG_CONFIG_PATH=$PWD/liblo-0.31/inst/lib/pkgconfig || (cat config.log; false))
- name: make
run: make && (make check || (for i in src/*.log; do echo === $i ===; cat $i; done; false)) && make install && find inst
- name: make tests
run: cd test && make tests
- name: make dist
run: make dist
- name: python wheels
run:
pwd && make distclean && bindings/python/build_wheels.py
- uses: actions/upload-artifact@v4
with:
name: artifact_linux
path: |
libmapper*.tar.gz
./wheelhouse/*.whl
MacOS-Latest:
runs-on: macOS-latest
timeout-minutes: 20
env:
CC: clang
CXX: clang++
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install dependencies
run:
brew install autoconf-archive automake pkg-config
&& python3 -m pip install --upgrade setuptools
&& python3 -m pip install packaging
- name: download liblo
run: curl -L -O https://downloads.sourceforge.net/project/liblo/liblo/0.31/liblo-0.31.tar.gz && tar -xzf liblo-0.31.tar.gz
- name: liblo make arm64
run:
cd ./liblo-0.31
&& pwd
&& (./configure CFLAGS="-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk --target=arm64-apple-darwin -fPIC" CXXFLAGS="-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk --target=arm64-apple-darwin" --build=x86_64-apple-darwin19.6.0 --host=aarch64-apple-darwin --enable-static --prefix=$PWD/inst --disable-shared --disable-tests --disable-tools --disable-examples || (cat config.log; false))
&& make install
&& mv ./inst/lib/liblo.a ./inst/lib/liblo.a.arm64
&& cd ..
- name: liblo make x86_64
run:
cd ./liblo-0.31
&& pwd
&& make clean
&& (./configure --host=$HOST --prefix=$PWD/inst --enable-static --disable-shared --disable-tests --disable-tools --disable-examples CFLAGS=-fPIC || (cat config.log; false))
&& make install
&& mv ./inst/lib/liblo.a ./inst/lib/liblo.a.x86_64
&& cd ..
- name: liblo universal binary
run: cd ./liblo-0.31/inst/lib && lipo -create -output ./liblo.a ./liblo.a.arm64 ./liblo.a.x86_64 && lipo -info ./liblo.a && rm ./liblo.a.* && cd ../../..
- name: libmapper autogen arm64
run:
pwd
&& mkdir $PWD/inst
&& (./autogen.sh CFLAGS="-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk --target=arm64-apple-darwin" CXXFLAGS="-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk --target=arm64-apple-darwin" --build=x86_64-apple-darwin19.6.0 --host=aarch64-apple-darwin --enable-static --prefix=$PWD/inst PKG_CONFIG_PATH=$PWD/liblo-0.31/inst/lib/pkgconfig || (cat config.log; false))
- name: libmapper make arm64 part 1
continue-on-error: true
run:
make install
- name: libmapper make arm64 part 2
run:
cd ./src/.libs
&& clang -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk --target=arm64-apple-darwin -o libmapper.11.dylib libmapper_la-device.o libmapper_la-expression.o libmapper_la-graph.o libmapper_la-link.o libmapper_la-list.o libmapper_la-map.o libmapper_la-message.o libmapper_la-network.o libmapper_la-object.o libmapper_la-path.o libmapper_la-property.o libmapper_la-signal.o libmapper_la-slot.o libmapper_la-table.o libmapper_la-time.o libmapper_la-mpr_set_coerced.o libmapper_la-value.o -L/Users/runner/work/libmapper/libmapper/liblo-0.31/inst/lib /Users/runner/work/libmapper/libmapper/liblo-0.31/inst/lib/liblo.a -lz -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -install_name /Users/runner/work/libmapper/libmapper/inst/lib/libmapper.11.dylib -compatibility_version 10 -current_version 10.0 -Wl,-single_module
&& cd ../..
&& mv ./src/.libs/libmapper.11.dylib ./inst/lib/libmapper.11.dylib.arm64
&& file ./inst/lib/libmapper.11.dylib.arm64
&& mv ./inst/lib/libmapper.a ./inst/lib/libmapper.a.arm64
&& lipo -info ./inst/lib/libmapper.a.arm64
- name: libmapper autogen x86_64
run:
make clean
&& (./autogen.sh --enable-static --prefix=$PWD/inst PKG_CONFIG_PATH=$PWD/liblo-0.31/inst/lib/pkgconfig || (cat config.log; false))
- name: libmapper make x86_64
run:
make
&& (make check || (for i in src/*.log; do echo === $i ===; cat $i; done; false))
&& make install
&& mv ./inst/lib/libmapper.11.dylib ./inst/lib/libmapper.11.dylib.x86_64
&& file ./inst/lib/libmapper.11.dylib.x86_64
&& mv ./inst/lib/libmapper.a ./inst/lib/libmapper.a.x86_64
&& lipo -info ./inst/lib/libmapper.a.x86_64
- name: libmapper universal binary
run:
pwd
&& find inst
&& cd ./inst/lib
&& lipo -create -output ./libmapper.a ./libmapper.a.arm64 ./libmapper.a.x86_64
&& lipo -info ./libmapper.a
&& rm ./libmapper.a.*
&& file ./libmapper.11.dylib.arm64
&& file ./libmapper.11.dylib.x86_64
&& lipo -create -output ./libmapper.11.dylib ./libmapper.11.dylib.arm64 ./libmapper.11.dylib.x86_64
&& file ./libmapper.11.dylib
&& rm ./libmapper.11.dylib.*
&& cd ../..
- name: make tests
run: cd test && make tests
- name: python wheels
run:
mv bindings/python/pyproject.toml bindings/python/pyproject.toml.temp
&& cp -v $PWD/inst/lib/libmapper.*.dylib bindings/python/libmapper/libmapper.dylib
&& python3 -m pip install wheel
&& pip3 wheel bindings/python -w ./wheelhouse
&& unzip -t wheelhouse/*.whl
- uses: actions/upload-artifact@v4
with:
name: artifact_macos
path: ./wheelhouse/*.whl
Windows-Latest:
runs-on: windows-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run windows PowerShell build script
shell: pwsh
run: .\windows_build.ps1
- name: Build python wheel
run: .\bindings\python\windows_build_wheel.ps1
- uses: actions/upload-artifact@v4
with:
name: artifact_windows
path: ./bindings/python/dist/*.whl
Linux-check-wheel:
runs-on: ubuntu-latest
needs: Linux
timeout-minutes: 20
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: download artifact
uses: actions/download-artifact@v4
with:
name: artifact_linux
- name: install wheel
run:
ls
&& python3 -m pip install wheelhouse/libmapper*-py3-none-manylinux_2_24_x86_64.whl
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: run python tests
run:
mkdir testpython
&& cd testpython
&& cp ../bindings/python/test*.py .
&& for i in test*.py; do echo running $i; if ! python3 $i; then exit 1; fi; done
MacOS-Latest-check-wheel:
runs-on: macOS-latest
needs: MacOS-Latest
timeout-minutes: 20
env:
SYSTEM_VERSION_COMPAT: 0
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: download artifact
uses: actions/download-artifact@v4
with:
name: artifact_macos
- name: install wheel
run:
ls
&& python3 -m pip install libmapper*-py3-none-macosx_*_universal2.whl
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: run python tests
run:
mkdir testpython
&& cd testpython
&& cp ../bindings/python/test*.py .
&& for i in test*.py; do echo running $i; if ! python3 $i; then exit 1; fi; done
Windows-Latest-check-wheel:
runs-on: windows-latest
needs: Windows-Latest
timeout-minutes: 20
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: download artifact
uses: actions/download-artifact@v4
with:
name: artifact_windows
- name: install wheel
run:
ls
&& python3 -m pip install libmapper-2.4.6-py3-none-win_amd64.whl
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: run python tests
run:
mkdir testpython
&& cd testpython
&& cp ../bindings/python/test*.py .
&& python3 ./test.py
&& python3 ./testcallbacks.py
&& python3 ./testconvergent.py
&& python3 ./testinstance.py
&& python3 ./testmapfromstr.py
&& python3 ./testreverse.py
&& python3 ./testvector.py