Skip to content

detect getservbyname, getservbyport (#27) #176

detect getservbyname, getservbyport (#27)

detect getservbyname, getservbyport (#27) #176

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- portable-python
workflow_dispatch:
inputs:
verbose:
required: false
type: boolean
env:
MACOSX_DEPLOYMENT_TARGET: 10.9
jobs:
tests:
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: true
matrix:
python-version: [3.9.20, 3.10.15, 3.11.10, 3.12.6]
os: [macos, ubuntu]
include:
- os: macos
runner: macos-12
- os: ubuntu
runner: ubuntu-latest
name: ${{ matrix.os }}-${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: 3.13.5
- name: Install tools
if: ${{ matrix.os == 'macos' }}
run: |
brew install gpatch
- name: Build
run: |
mkdir -p python-build && mkdir -p python-install
cd python-build
cmake \
${{ inputs.verbose && '--trace-expand --debug-find' || '' }} \
-DCMAKE_INSTALL_PREFIX:PATH=${{ github.workspace }}/python-install \
${{ matrix.os == 'macos' && format('-DCMAKE_OSX_DEPLOYMENT_TARGET={0}', env.MACOSX_DEPLOYMENT_TARGET) || '' }} \
${{ startsWith(matrix.python-version, '3.11') && '-DUSE_SYSTEM_TCL=OFF' || '' }} ${{ startsWith(matrix.python-version, '3.12') && '-DUSE_SYSTEM_TCL=OFF' || '' }} \
-DPYTHON_VERSION=${{ matrix.python-version }} \
..
make -j4 ${{ inputs.verbose && 'VERBOSE=1' || '' }}
make install
- name: Check sysconfig
run: |
./python-install/bin/python -m sysconfig
- name: Test
run: |
./python-install/bin/python -m ensurepip || true
./python-install/bin/python -m pip install certifi || true
./python-install/bin/python -m test -v --timeout 60 || true