From 8881f7e52e5ba7004888820878104ab48706f1e5 Mon Sep 17 00:00:00 2001 From: Lester Hedges Date: Wed, 21 Jan 2026 14:56:37 +0000 Subject: [PATCH 1/2] Add macOS builds to enable OpenCL support with somd2. --- .github/workflows/devel.yaml | 7 +++++++ .github/workflows/main.yaml | 1 + .github/workflows/pr.yaml | 10 ++++++++++ 3 files changed, 18 insertions(+) diff --git a/.github/workflows/devel.yaml b/.github/workflows/devel.yaml index 902ace0..a5e117e 100644 --- a/.github/workflows/devel.yaml +++ b/.github/workflows/devel.yaml @@ -16,6 +16,13 @@ jobs: python-version: ["3.10", "3.11", "3.12"] platform: - { name: "linux", os: "ubuntu-latest", shell: "bash -l {0}" } + - { name: "macos", os: "macos-latest", shell: "bash -l {0}" } + exclude: + # Exclude all but the latest Python from all + # but Linux + - platform: + { name: "macos", os: "macos-latest", shell: "bash -l {0}" } + python-version: "3.12" # MacOS can't run 3.12 yet... We want 3.10 and 3.11 environment: name: loch-build defaults: diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 33beb4c..6ceb964 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -19,6 +19,7 @@ jobs: python-version: ["3.10", "3.11", "3.12"] platform: - { name: "linux", os: "ubuntu-latest", shell: "bash -l {0}" } + - { name: "macos", os: "macos-latest", shell: "bash -l {0}" } environment: name: loch-build defaults: diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index bdcd013..c6d7b35 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -15,6 +15,16 @@ jobs: python-version: ["3.10", "3.11", "3.12"] platform: - { name: "linux", os: "ubuntu-latest", shell: "bash -l {0}" } + - { name: "macos", os: "macos-latest", shell: "bash -l {0}" } + exclude: + # Exclude all but the latest Python from all + # but Linux + - platform: + { name: "macos", os: "macos-latest", shell: "bash -l {0}" } + python-version: "3.10" + - platform: + { name: "macos", os: "macos-latest", shell: "bash -l {0}" } + python-version: "3.12" # MacOS can't run 3.12 yet... environment: name: loch-build defaults: From d83ca2203c9ffc5aa1f3028122b0095e9c2ef619 Mon Sep 17 00:00:00 2001 From: Lester Hedges Date: Wed, 21 Jan 2026 15:03:22 +0000 Subject: [PATCH 2/2] Fix osx selector in recipe. --- recipes/loch/template.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/loch/template.yaml b/recipes/loch/template.yaml index 0096832..f0b01a5 100644 --- a/recipes/loch/template.yaml +++ b/recipes/loch/template.yaml @@ -17,7 +17,7 @@ requirements: - biosimspace - loguru - pip - - pycuda # [not macos] + - pycuda # [not osx] - pyopencl - python - setuptools @@ -26,7 +26,7 @@ requirements: run: - biosimspace - loguru - - pycuda # [not macos] + - pycuda # [not osx] - python - sire