Skip to content

Commit

Permalink
Get CI back to green (#822)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed May 17, 2024
1 parent 2911447 commit 62580e3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,20 @@ jobs:
if: matrix.PYTHON.COVERAGE != 'false'

macos:
runs-on: macos-latest
runs-on: ${{ matrix.RUNNER }}
strategy:
matrix:
RUNNER:
- 'macos-13'
- 'macos-latest'
PYTHON:
- {VERSION: "3.6", TOXENV: "py36"}
- {VERSION: "3.12", TOXENV: "py312"}
- {VERSION: "3.12", TOXENV: "py312", NOTE: " (minimal build)", SODIUM_INSTALL_MINIMAL: "1"}
name: "Python ${{ matrix.PYTHON.VERSION }}${{ matrix.PYTHON.NOTE }} on macOS"
exclude:
- PYTHON: {VERSION: "3.6", TOXENV: "py36"}
RUNNER: macos-latest
name: "Python ${{ matrix.PYTHON.VERSION }}${{ matrix.PYTHON.NOTE }} on ${{ matrix.RUNNER }}"
steps:
- uses: actions/checkout@v3.6.0
- name: Setup python
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/wheel-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ on:
jobs:
manylinux:
runs-on: ubuntu-latest
container: ghcr.io/pyca/${{ matrix.MANYLINUX.CONTAINER }}
container:
image: ghcr.io/pyca/${{ matrix.MANYLINUX.CONTAINER }}
volumes:
- /staticnodehost:/staticnodecontainer:rw,rshared
- /staticnodehost:/__e/node20:ro,rshared
strategy:
matrix:
PYTHON:
Expand All @@ -32,6 +36,9 @@ jobs:

name: "${{ matrix.PYTHON.VERSION }} for ${{ matrix.MANYLINUX.NAME }}"
steps:
- name: Ridiculous-er workaround for static node20
run: |
cp -R /staticnode/* /staticnodecontainer/
- uses: actions/checkout@v3.6.0
with:
# The tag to build or the tag received by the tag event
Expand Down Expand Up @@ -87,10 +94,10 @@ jobs:
- run: venv/bin/pip install -U pip wheel cffi
- name: Make sdist
run: venv/bin/python setup.py sdist
- run: tar zxvf dist/PyNaCl*.tar.gz && mkdir wheelhouse
- run: tar zxvf dist/pynacl*.tar.gz && mkdir wheelhouse
- name: Build the wheel
run: |
cd PyNaCl*
cd pynacl*
LIBSODIUM_MAKE_ARGS="-j$(sysctl -n hw.ncpu)" \
../venv/bin/python setup.py bdist_wheel --py-limited-api=${{ matrix.PYTHON.ABI_VERSION }} && mv dist/PyNaCl*.whl ../wheelhouse
env:
Expand Down

0 comments on commit 62580e3

Please sign in to comment.