Fix sort command: use bash for $'\t' syntax support #12
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release Rust Binary | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: 'Version to release (e.g., 0.1.0)' | |
| required: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build ${{ matrix.target }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # Linux x86_64 | |
| - os: ubuntu-latest | |
| target: x86_64-unknown-linux-gnu | |
| platform: manylinux_2_17_x86_64 | |
| # macOS x86_64 | |
| - os: macos-15-intel | |
| target: x86_64-apple-darwin | |
| platform: macosx_10_12_x86_64 | |
| # macOS ARM64 (Apple Silicon) | |
| - os: macos-latest | |
| target: aarch64-apple-darwin | |
| platform: macosx_11_0_arm64 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build wheel (Linux with manylinux container) | |
| if: runner.os == 'Linux' | |
| uses: PyO3/maturin-action@v1 | |
| with: | |
| target: ${{ matrix.target }} | |
| manylinux: 2_17 | |
| args: --release --out dist | |
| - name: Build wheel (macOS) | |
| if: runner.os == 'macOS' | |
| run: | | |
| pip install maturin | |
| maturin build --release --target ${{ matrix.target }} --out dist | |
| - name: Upload wheel | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: wheel-${{ matrix.target }} | |
| path: dist/*.whl | |
| publish: | |
| name: Publish to PyPI | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: release | |
| permissions: | |
| id-token: write # For trusted publishing | |
| steps: | |
| - name: Download all wheels | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: dist | |
| pattern: wheel-* | |
| merge-multiple: true | |
| - name: List wheels | |
| run: ls -la dist/ | |
| - name: Publish to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| packages-dir: dist/ |