Skip to content
Merged
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
19 changes: 16 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:
jobs:
test:
name: Run pytest
runs-on: macos-14
runs-on: macos-15
env:
RUSTFLAGS: -C link-arg=-L/usr/lib/swift -C link-arg=-Wl,-rpath,/usr/lib/swift
UV_CACHE_DIR: .uv-cache
Expand Down Expand Up @@ -71,12 +71,25 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-14]
os: [macos-15]
python-version: ["3.11"]

steps:
- uses: actions/checkout@v4

- name: Patch Cargo.toml version from tag
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
run: |
TAG="${GITHUB_REF_NAME}"
VERSION="${TAG#v}"
if [ "$VERSION" = "$TAG" ]; then
echo "Tag must start with 'v', got: $TAG" >&2
exit 1
fi
sed -i.bak -E "s/^version = \".*\"$/version = \"${VERSION}\"/" Cargo.toml
rm -f Cargo.toml.bak
grep -n '^version = ' Cargo.toml

- name: Install native build deps
run: |
brew update
Expand All @@ -92,7 +105,7 @@ jobs:
args: --release --target universal2-apple-darwin --out dist

- name: Build sdist
if: matrix.os == 'macos-14'
if: matrix.os == 'macos-15'
uses: PyO3/maturin-action@v1
with:
command: sdist
Expand Down
Loading