Skip to content

Commit

Permalink
restore other operating systems for cicd yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
jessekrubin committed Jan 18, 2024
1 parent 641bb61 commit 6bd0c58
Showing 1 changed file with 99 additions and 99 deletions.
198 changes: 99 additions & 99 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,102 +60,102 @@ jobs:
pip3 install ry --find-links dist --force-reinstall
pytest
# windows:
# runs-on: windows-latest
# if: |
# github.ref == 'refs/heads/main' ||
# github.ref == 'refs/heads/master' ||
# github.ref == 'refs/tags/v*'
# strategy:
# matrix:
# target: [ x64, x86 ]
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: '3.10'
# architecture: ${{ matrix.target }}
# - name: Build wheels
# uses: PyO3/maturin-action@v1
# with:
# target: ${{ matrix.target }}
# args: --release --out dist --find-interpreter
# sccache: 'true'
# - name: Upload wheels
# uses: actions/upload-artifact@v4
# with:
# name: wheels-windows-${{ matrix.target }}
# path: dist
# - name: pytest
# if: ${{ !startsWith(matrix.target, 'aarch64') }}
# shell: bash
# run: |
# set -e
# pip install ry --find-links dist --force-reinstall
# pip install pytest
# pytest
#
# macos:
# runs-on: macos-latest
# # only run on tags/main and pull requests to main
# if: |
# github.ref == 'refs/heads/main' ||
# github.ref == 'refs/heads/master' ||
# github.ref == 'refs/tags/v*'
# strategy:
# matrix:
# target: [ x86_64, aarch64 ]
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: '3.10'
# - name: Build wheels
# uses: PyO3/maturin-action@v1
# with:
# target: ${{ matrix.target }}
# args: --release --out dist --find-interpreter
# sccache: 'true'
# - name: Upload wheels
# uses: actions/upload-artifact@v4
# with:
# name: wheels-macos-${{ matrix.target }}
# path: dist
# - name: pytest
# if: ${{ !startsWith(matrix.target, 'aarch64') }}
# shell: bash
# run: |
# set -e
# pip install ry --find-links dist --force-reinstall
# pip install pytest
# pytest
#
# sdist:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Build sdist
# uses: PyO3/maturin-action@v1
# with:
# command: sdist
# args: --out dist
# - name: Upload sdist
# uses: actions/upload-artifact@v4
# with:
# name: wheels-sdist
# path: dist
#
# release:
# name: Release
# runs-on: ubuntu-latest
# needs: [ linux, windows, macos, sdist ]
# steps:
# - uses: actions/download-artifact@v4
# - name: Publish to PyPI
# if: "startsWith(github.ref, 'refs/tags/')"
# uses: PyO3/maturin-action@v1
# env:
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
# with:
# command: upload
# args: --non-interactive --skip-existing *
windows:
runs-on: windows-latest
if: |
github.ref == 'refs/heads/main' ||
github.ref == 'refs/heads/master' ||
github.ref == 'refs/tags/v*'
strategy:
matrix:
target: [ x64, x86 ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: ${{ matrix.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-windows-${{ matrix.target }}
path: dist
- name: pytest
if: ${{ !startsWith(matrix.target, 'aarch64') }}
shell: bash
run: |
set -e
pip install ry --find-links dist --force-reinstall
pip install pytest
pytest
macos:
runs-on: macos-latest
# only run on tags/main and pull requests to main
if: |
github.ref == 'refs/heads/main' ||
github.ref == 'refs/heads/master' ||
github.ref == 'refs/tags/v*'
strategy:
matrix:
target: [ x86_64, aarch64 ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-macos-${{ matrix.target }}
path: dist
- name: pytest
if: ${{ !startsWith(matrix.target, 'aarch64') }}
shell: bash
run: |
set -e
pip install ry --find-links dist --force-reinstall
pip install pytest
pytest
sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
command: sdist
args: --out dist
- name: Upload sdist
uses: actions/upload-artifact@v4
with:
name: wheels-sdist
path: dist

release:
name: Release
runs-on: ubuntu-latest
needs: [ linux, windows, macos, sdist ]
steps:
- uses: actions/download-artifact@v4
- name: Publish to PyPI
if: "startsWith(github.ref, 'refs/tags/')"
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --non-interactive --skip-existing *

0 comments on commit 6bd0c58

Please sign in to comment.