Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/buildThirdPartyLibrary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ jobs:
# glibc symbols that are not available in that container, resulting in our Python wheels failing to
# load.
- name: 'Linux (Intel)'
os: ubuntu-24.04
os: ubuntu-26.04
container: quay.io/pypa/manylinux_2_34_x86_64:2025.09.19-1
build_type: Release
- name: 'Linux (ARM)'
os: ubuntu-24.04-arm
os: ubuntu-26.04-arm
container: quay.io/pypa/manylinux_2_34_aarch64:2025.09.19-1
build_type: Release
- name: 'macOS (Intel)'
Expand Down
29 changes: 10 additions & 19 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@ jobs:
build_type: Debug
shared_libs: ON
- name: 'Linux static library (Intel)'
os: ubuntu-24.04
os: ubuntu-26.04
build_type: Release
shared_libs: OFF
- name: 'Linux shared library (Intel)'
os: ubuntu-24.04
os: ubuntu-26.04
build_type: Release
shared_libs: ON
- name: 'Linux static library (ARM)'
os: ubuntu-24.04-arm
os: ubuntu-26.04-arm
build_type: Release
shared_libs: OFF
- name: 'Linux shared library (ARM)'
os: ubuntu-24.04-arm
os: ubuntu-26.04-arm
build_type: Release
shared_libs: ON
- name: 'macOS static library (Intel)'
Expand Down Expand Up @@ -106,16 +106,6 @@ jobs:
uses: TheMrMilchmann/setup-msvc-dev@v4.1.0
with:
arch: ${{ matrix.arch }}
- name: Install GCC 16
if: ${{ runner.os == 'Linux' }}
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y gcc-16 g++-16
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-16 100
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-16 100
echo "CC=gcc-16" >> "$GITHUB_ENV"
echo "CXX=g++-16" >> "$GITHUB_ENV"
- name: Configure libOpenCOR
run: cmake -G Ninja -S . -B build -DBUILD_TYPE=${{ matrix.build_type }} -DCODE_ANALYSIS=OFF -DCODE_COVERAGE=OFF -DDOCUMENTATION=OFF -DJAVASCRIPT_BINDINGS=OFF -DMEMORY_CHECKS=OFF -DPYTHON_BINDINGS=OFF -DPYTHON_UNIT_TESTING=OFF -DSHARED_LIBS=${{ matrix.shared_libs }} -DUNIT_TESTING=OFF
- name: Build libOpenCOR
Expand Down Expand Up @@ -149,9 +139,9 @@ jobs:
os: windows-11-arm
arch: amd64_arm64
- name: 'Linux Python wheels (Intel)'
os: ubuntu-24.04
os: ubuntu-26.04
- name: 'Linux Python wheels (ARM)'
os: ubuntu-24.04-arm
os: ubuntu-26.04-arm
- name: 'macOS Python wheels (Intel)'
os: macos-15-intel
- name: 'macOS Python wheels (ARM)'
Expand Down Expand Up @@ -207,7 +197,7 @@ jobs:
python_pypi:
needs: [python_wheels]
name: Publish to PyPI
runs-on: ubuntu-24.04
runs-on: ubuntu-26.04
environment: pypi
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
steps:
Expand All @@ -221,7 +211,7 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
webassembly:
name: WebAssembly
runs-on: ubuntu-24.04
runs-on: ubuntu-26.04
env:
BUILDCACHE_ACCURACY: STRICT
BUILDCACHE_COMPRESS_FORMAT: ZSTD
Expand All @@ -244,7 +234,6 @@ jobs:
run: npm install -g npm@latest
- name: Install Brotli
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y brotli
- name: Install CMake and Ninja
Expand All @@ -255,6 +244,8 @@ jobs:
cache_key: cd-webassembly
- name: Install Emscripten
uses: emscripten-core/setup-emsdk@v16
- name: Install TypeScript
run: npm install -g typescript
- name: Configure libOpenCOR
run: cmake -G Ninja -S . -B build -DBUILD_TYPE=Release -DCODE_ANALYSIS=OFF -DCODE_COVERAGE=OFF -DDOCUMENTATION=OFF -DJAVASCRIPT_BINDINGS=ON -DJAVASCRIPT_UNIT_TESTING=OFF -DMEMORY_CHECKS=OFF -DPYTHON_BINDINGS=OFF -DPYTHON_UNIT_TESTING=OFF -DSHARED_LIBS=OFF -DUNIT_TESTING=OFF
- name: Build WebAssembly
Expand Down
41 changes: 17 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
install_prefix: cmake
copy_dll: ON
- name: 'Linux static library (Intel)'
os: ubuntu-24.04
os: ubuntu-26.04
build_type: Release
code_analysis: OFF
code_coverage: OFF
Expand All @@ -90,7 +90,7 @@ jobs:
install_uninstall_and_package: ON
install_prefix: lib/cmake
- name: 'Linux shared library (Intel)'
os: ubuntu-24.04
os: ubuntu-26.04
build_type: Release
code_analysis: OFF
code_coverage: OFF
Expand All @@ -104,7 +104,7 @@ jobs:
install_uninstall_and_package: ON
install_prefix: lib/cmake
- name: 'Linux static library (ARM)'
os: ubuntu-24.04-arm
os: ubuntu-26.04-arm
build_type: Release
code_analysis: OFF
code_coverage: OFF
Expand All @@ -118,7 +118,7 @@ jobs:
install_uninstall_and_package: ON
install_prefix: lib/cmake
- name: 'Linux shared library (ARM)'
os: ubuntu-24.04-arm
os: ubuntu-26.04-arm
build_type: Release
code_analysis: OFF
code_coverage: OFF
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:
install_uninstall_and_package: ON
install_prefix: lib/cmake
- name: 'JavaScript bindings'
os: ubuntu-24.04
os: ubuntu-26.04
build_type: Release
code_analysis: OFF
code_coverage: OFF
Expand All @@ -214,7 +214,7 @@ jobs:
target: python_unit_testing
pip_install_test_and_uninstall: ON
- name: 'Linux Python bindings'
os: ubuntu-24.04
os: ubuntu-26.04
build_type: Release
code_analysis: OFF
code_coverage: OFF
Expand Down Expand Up @@ -242,7 +242,7 @@ jobs:
pip_install_prerequisites: sudo uv pip install --system cmake scikit-build
pip_install_test_and_uninstall: ON
- name: 'Code formatting'
os: ubuntu-24.04
os: ubuntu-26.04
build_type: Release
code_analysis: OFF
code_coverage: OFF
Expand All @@ -255,7 +255,7 @@ jobs:
context: PATH=$GITHUB_WORKSPACE:$PATH
target: check_code_formatting
- name: 'JavaScript code formatting'
os: ubuntu-24.04
os: ubuntu-26.04
build_type: Release
code_analysis: OFF
code_coverage: OFF
Expand All @@ -267,7 +267,7 @@ jobs:
unit_testing: OFF
target: javascript_check_code_formatting
- name: 'Python code formatting'
os: ubuntu-24.04
os: ubuntu-26.04
build_type: Release
code_analysis: OFF
code_coverage: OFF
Expand All @@ -279,7 +279,7 @@ jobs:
unit_testing: OFF
target: python_check_code_formatting
- name: 'Code analysis'
os: ubuntu-24.04
os: ubuntu-26.04
build_type: Release
code_analysis: ON
code_coverage: OFF
Expand Down Expand Up @@ -316,7 +316,7 @@ jobs:
unit_testing: ON
target: memory_checks
- name: 'Documentation'
os: ubuntu-24.04
os: ubuntu-26.04
build_type: Release
code_analysis: OFF
code_coverage: OFF
Expand Down Expand Up @@ -359,16 +359,6 @@ jobs:
uses: TheMrMilchmann/setup-msvc-dev@v4.1.0
with:
arch: ${{ matrix.arch }}
- name: Install GCC 16
if: ${{ runner.os == 'Linux' }}
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y gcc-16 g++-16
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-16 100
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-16 100
echo "CC=gcc-16" >> "$GITHUB_ENV"
echo "CXX=g++-16" >> "$GITHUB_ENV"
- name: Install LLVM
if: ${{ matrix.code_coverage == 'ON' }}
run: brew install llvm
Expand All @@ -387,6 +377,9 @@ jobs:
- name: Install Emscripten
if: ${{ matrix.javascript_support == 'ON' }}
uses: emscripten-core/setup-emsdk@v16
- name: Install TypeScript
if: ${{ matrix.javascript_support == 'ON' }}
run: npm install -g typescript
- name: Install Biome
if: ${{ matrix.target == 'javascript_check_code_formatting' }}
run: |
Expand Down Expand Up @@ -505,9 +498,9 @@ jobs:
matrix:
include:
- name: 'Linux Python wheel (Intel)'
os: ubuntu-24.04
os: ubuntu-26.04
- name: 'Linux Python wheel (ARM)'
os: ubuntu-24.04-arm
os: ubuntu-26.04-arm
steps:
- name: Set the timezone to New Zealand
run: sudo timedatectl set-timezone Pacific/Auckland
Expand All @@ -527,7 +520,7 @@ jobs:
CIBW_SKIP: '*musllinux*'
spell_check:
name: Spell check
runs-on: ubuntu-24.04
runs-on: ubuntu-26.04
steps:
- name: Set the timezone to New Zealand
run: sudo timedatectl set-timezone Pacific/Auckland
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.20261113.1
1.20261124.0
5 changes: 4 additions & 1 deletion cmake/common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,12 @@ function(configure_target TARGET)
AND "${${AVAILABLE_PACKAGE_UC}_CMAKE_PACKAGE_NAME}" STREQUAL "")
# There are no CMake configuration files, so manually configure the package using targets of the form
# <PACKAGE_NAME>::<LIBRARY_NAME>.
# Note: a package may also list some system libraries (e.g., bcrypt for libxml2 on Windows), which are not
# of that form and which we therefore link as is.

foreach(AVAILABLE_PACKAGE_LIBRARY ${PACKAGE_LIBRARIES})
if(NOT TARGET ${AVAILABLE_PACKAGE_LIBRARY})
if( "${AVAILABLE_PACKAGE_LIBRARY}" MATCHES "::"
AND NOT TARGET ${AVAILABLE_PACKAGE_LIBRARY})
add_library(${AVAILABLE_PACKAGE_LIBRARY} STATIC IMPORTED)

if(RELEASE_MODE)
Expand Down
21 changes: 19 additions & 2 deletions cmake/packages.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -231,15 +231,28 @@ function(add_package PACKAGE)
endfunction()

function(retrieve_package PACKAGE_NAME PACKAGE_VERSION PACKAGE_REPOSITORY RELEASE_TAG SHA1_VALUE)
# Check whether the package has already been retrieved by simply checking whether its installation directory exists.
# Check whether the package has already been retrieved by checking whether its installation directory contains a
# marker file with the SHA-1 value of the package that we want. If the marker file is missing or if it has a
# different SHA-1 value, then we remove the installation directory and retrieve the package anew.
# Note: the marker file is located at the root of the installation directory, so create_package() never includes
# it in a package since it only packages some specific subdirectories and/or files.

set(INSTALL_DIR ${PREBUILT_DIR}/${PACKAGE_NAME})
set(MARKER_FILE ${INSTALL_DIR}/.sha1)

message(STATUS "Retrieving Package ${PACKAGE_NAME}")

if(EXISTS ${INSTALL_DIR})
set(INSTALLED_SHA1_VALUE)

if(EXISTS ${MARKER_FILE})
file(READ ${MARKER_FILE} INSTALLED_SHA1_VALUE)
string(STRIP "${INSTALLED_SHA1_VALUE}" INSTALLED_SHA1_VALUE)
endif()

if("${INSTALLED_SHA1_VALUE}" STREQUAL "${SHA1_VALUE}")
message(STATUS "Retrieving Package ${PACKAGE_NAME} - Success")
else()
file(REMOVE_RECURSE ${INSTALL_DIR})
# Retrieve the package.

set(PACKAGE_FILE ${PACKAGE_NAME}.${PACKAGE_VERSION}.${TARGET_PLATFORM_ARCHITECTURE}.tar.gz)
Expand Down Expand Up @@ -292,6 +305,10 @@ function(retrieve_package PACKAGE_NAME PACKAGE_VERSION PACKAGE_REPOSITORY RELEAS

file(REMOVE ${REAL_PACKAGE_FILE})

# Keep track of the SHA-1 value of the package that we have retrieved.

file(WRITE ${MARKER_FILE} "${SHA1_VALUE}\n")

message(STATUS "Retrieving Package ${PACKAGE_NAME} - Success")
else()
set(FAILED_DOWNLOAD TRUE)
Expand Down
18 changes: 9 additions & 9 deletions src/3rdparty/LLVM/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,49 +138,49 @@ if(LIBOPENCOR_PREBUILT_LLVM)
if(EMSCRIPTEN)
retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION}
${PACKAGE_REPOSITORY} ${RELEASE_TAG}
6155cad48ecc59cf37d8b7dd8c968ae816a7fefe)
c1b146ac732d76c0e0e05a24bbc7aabe53c30326)
else()
if(WIN32)
if(RELEASE_MODE)
if(INTEL_MODE)
retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION}
${PACKAGE_REPOSITORY} ${RELEASE_TAG}
923ce9c811c43650bebba33e8c0885f1ec3070dc)
2a80ae0661f34766ae0ce0ca087f9ed999065844)
else()
retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION}
${PACKAGE_REPOSITORY} ${RELEASE_TAG}
dc9f91e299fa9d940b1c88b67a945a914ca09685)
1b139c6a9c192bee75716cb5c03a4e2720f9585d)
endif()
else()
if(INTEL_MODE)
retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION}
${PACKAGE_REPOSITORY} ${RELEASE_TAG}
9676e1ca3a383e3947a5fe3487086d8308c2abbd)
21e49ed3363f3729162a69a419b9b074e2dfaa1f)
else()
retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION}
${PACKAGE_REPOSITORY} ${RELEASE_TAG}
7b5c4221520251993c411a94325061a26c915c06)
eb1d2331878f332cbb52e65b46f4a6a4279338e4)
endif()
endif()
elseif(APPLE)
if(INTEL_MODE)
retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION}
${PACKAGE_REPOSITORY} ${RELEASE_TAG}
27a76d020977ebf95e20fbd64fcb94c2c78850a9)
9ba7219fe033ce76c58edca02fb62c2cfa254b2d)
else()
retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION}
${PACKAGE_REPOSITORY} ${RELEASE_TAG}
6f02a9a59809cf02d5bde496c1cca01320de1a35)
64366d5a63f78c338fb7c9c068a51ffa0ab26df0)
endif()
else()
if(INTEL_MODE)
retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION}
${PACKAGE_REPOSITORY} ${RELEASE_TAG}
9959a76393293c7fbe4401ccebeb12c72faab2f8)
0f2ee98073b218d40c6cf463838d3fe42ffa7f5e)
else()
retrieve_package(${PACKAGE_NAME} ${PACKAGE_VERSION}
${PACKAGE_REPOSITORY} ${RELEASE_TAG}
5591b378a47c1f8a1c98a0ec81607c5e5f9eeb7d)
bbf9c4259ddab7375ba4cbe780933498c8631e68)
endif()
endif()
endif()
Expand Down
Loading
Loading