refactor: By default, sample only simple characters in strings #810
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: Build | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| release: | |
| types: [published] | |
| jobs: | |
| build-sdist: | |
| name: Build Sdist | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up pixi | |
| uses: prefix-dev/setup-pixi@28eb668aafebd9dede9d97c4ba1cd9989a4d0004 # v0.9.2 | |
| with: | |
| environments: build | |
| - name: Set version | |
| run: pixi run -e build set-version | |
| - name: Build project | |
| run: pixi run -e build build-sdist | |
| - name: Upload package | |
| uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 | |
| with: | |
| name: sdist | |
| path: dist/* | |
| build-wheel: | |
| name: Build Wheel (${{ matrix.target-platform }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - target-platform: linux-64 | |
| os: ubuntu-latest | |
| - target-platform: linux-aarch64 | |
| os: ubuntu-24.04-arm | |
| - target-platform: osx-64 | |
| os: macos-15-intel | |
| - target-platform: osx-arm64 | |
| os: macos-latest | |
| - target-platform: win-64 | |
| os: windows-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up pixi | |
| uses: prefix-dev/setup-pixi@28eb668aafebd9dede9d97c4ba1cd9989a4d0004 # v0.9.2 | |
| with: | |
| environments: build | |
| - name: Set version | |
| run: pixi run -e build set-version | |
| - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 | |
| with: | |
| python-version: "3.10" | |
| - name: Build wheel | |
| uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4 | |
| with: | |
| command: build | |
| args: --out dist --release | |
| manylinux: auto | |
| sccache: true | |
| - name: Check package | |
| run: pixi run -e build check-wheel | |
| - name: Upload package | |
| uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 | |
| with: | |
| name: wheel-${{ matrix.target-platform }} | |
| path: dist/* | |
| release: | |
| name: Publish package | |
| if: github.event_name == 'release' | |
| needs: build-wheel | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| environment: pypi | |
| steps: | |
| - uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 | |
| with: | |
| path: dist | |
| merge-multiple: true | |
| - name: Publish package on PyPi | |
| uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0 |