Skip to content

Commit

Permalink
Update lint-test-cover-docs-build-upload.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wyatt-howe authored May 24, 2024
1 parent 425c7cd commit 6fed8ae
Showing 1 changed file with 73 additions and 1 deletion.
74 changes: 73 additions & 1 deletion .github/workflows/lint-test-cover-docs-build-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
name: ${{ env.WHEELNAME }}
path: rbcl-wheelhouse/
macos-arm:
runs-on: [self-hosted, macos, ARM64]
runs-on: [self-hosted, macos-14, ARM64]
strategy:
matrix:
python:
Expand Down Expand Up @@ -183,6 +183,78 @@ jobs:
with:
name: ${{ env.WHEELNAME }}
path: rbcl-wheelhouse/







macos-arm-new:
runs-on: [self-hosted, macos, ARM64]
strategy:
matrix:
python:
- {version: '3.9', abi: 'cp39', url: '3.9.9'}
- {version: '3.10', abi: 'cp310', url: '3.10.6'}
- {version: '3.11', abi: 'cp311', url: '3.11.3'}
- {version: '3.12', abi: 'cp312', url: '3.12.2'}
name: Python ${{ matrix.python.version }} with ABI ${{ matrix.python.abi }} for macOS 14 ARM
env:
WHEELNAME: rbcl-${{ github.ref_name }}-${{ matrix.python.abi }}-abi3-macosx_10_10_universal2
steps:
- uses: actions/checkout@v4
- name: Install Python.
run: |
curl "https://www.python.org/ftp/python/${{ matrix.python.url }}/python-${{ matrix.python.url }}-macos11.pkg" -o python.pkg
sudo installer -pkg python.pkg -target /
/Library/Frameworks/Python.framework/Versions/${{ matrix.python.version }}/bin/python3 -m pip install -U virtualenv
/Library/Frameworks/Python.framework/Versions/${{ matrix.python.version }}/bin/python3 -m virtualenv venv
- name: Download libsodium source tree archive.
run: |
wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.18.tar.gz
mv libsodium-1.0.18.tar.gz src/rbcl/libsodium.tar.gz
- name: Install Python dependencies for build process.
run: |
venv/bin/pip install -U pip .[build]
- name: Build wheel file.
run: |
mkdir wheelhouse
rm -f dist/*.*
LIBSODIUM_MAKE_ARGS="-j$(sysctl -n hw.ncpu)" MACOSX_DEPLOYMENT_TARGET="10.10" CFLAGS="-arch arm64" ARCHFLAGS="-arch arm64" _PYTHON_HOST_PLATFORM="macosx-10.9-universal2" \
venv/bin/python -m build --wheel && mv dist/rbcl*.whl wheelhouse
cp build/lib*/rbcl/_sodium.py src/rbcl/_sodium.py
- name: Test wheel installation.
run: |
venv/bin/pip install -f wheelhouse --no-index --force-reinstall --no-dependencies rbcl
- name: Lint and test module (and compiled libsodium shared library file).
run: |
venv/bin/pip install -U pip .[lint,test]
venv/bin/python -m pylint rbcl src/rbcl/_sodium.tmpl src/rbcl/_sodium_build.py --disable=duplicate-code # Check against linting rules.
venv/bin/python src/rbcl/rbcl.py -v # Run doctests.
venv/bin/python -m pytest # Run tests.
- name: Test auto-generation of documentation.
run: |
venv/bin/pip install -U .[docs]
cd docs
../venv/bin/sphinx-apidoc -f -E --templatedir=_templates -o _source .. ../src/rbcl/_sodium_build.py
make html SPHINXBUILD='../venv/bin/sphinx-build'
cd ..
- name: Upload wheel file.
run: |
mkdir rbcl-wheelhouse
mv wheelhouse/rbcl*.whl rbcl-wheelhouse/${{ env.WHEELNAME }}.whl
- uses: actions/upload-artifact@v3
with:
name: ${{ env.WHEELNAME }}
path: rbcl-wheelhouse/







windows:
runs-on: windows-latest
strategy:
Expand Down

0 comments on commit 6fed8ae

Please sign in to comment.