fix again #40
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-github-actions | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| jobs: | |
| macos: | |
| runs-on: macos-latest | |
| permissions: | |
| contents: write | |
| packages: write | |
| strategy: | |
| matrix: | |
| python: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
| target: ["x86_64", "universal2", "aarch64"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: 'true' | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Build wheels - ${{ matrix.target }} | |
| uses: PyO3/maturin-action@v1 | |
| with: | |
| target: ${{ matrix.target }} | |
| args: --release --out dist -m rust/maprando/Cargo.toml | |
| - name: Set env | |
| run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| draft: true | |
| prerelease: true | |
| name: pysmmaprando v${{ env.RELEASE_VERSION }} | |
| files: | | |
| ./dist/*.whl | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| windows: | |
| runs-on: windows-latest | |
| permissions: | |
| contents: write | |
| packages: write | |
| strategy: | |
| matrix: | |
| python: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
| target: [x64] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: 'true' | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| architecture: ${{ matrix.target }} | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Build wheels | |
| uses: PyO3/maturin-action@v1 | |
| with: | |
| target: ${{ matrix.target }} | |
| args: --release --out dist -m rust/maprando/Cargo.toml | |
| - name: Set env | |
| run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| draft: true | |
| prerelease: true | |
| name: pysmmaprando v${{ env.RELEASE_VERSION }} | |
| files: | | |
| ./dist/*.whl | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| linux: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| packages: write | |
| strategy: | |
| matrix: | |
| python: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
| target: ["x86_64", "aarch64"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: 'true' | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y perl libperl5.38 | |
| - name: Set environment for vendored OpenSSL | |
| run: echo "OPENSSL_STATIC=1" >> $GITHUB_ENV | |
| - name: Build x86_64 wheels | |
| uses: PyO3/maturin-action@v1 | |
| if: ${{ matrix.target == 'x86_64' }} | |
| with: | |
| target: ${{ matrix.target }} | |
| manylinux: auto | |
| args: --release --out dist -m rust/maprando/Cargo.toml -i python${{ matrix.python }} | |
| - name: Build aarch64 wheels | |
| uses: PyO3/maturin-action@v1 | |
| # One of our deps, "ring", needs a newer sysroot than what "manylinux: auto" provides. | |
| if: ${{ matrix.target == 'aarch64' }} | |
| with: | |
| target: ${{ matrix.target }} | |
| manylinux: 2_28 | |
| args: --release --out dist -m rust/maprando/Cargo.toml -i python${{ matrix.python }} | |
| - name: Set env | |
| run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| draft: true | |
| prerelease: true | |
| name: pysmmaprando v${{ env.RELEASE_VERSION }} | |
| files: | | |
| ./dist/*.whl | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |