-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (48 loc) · 1.27 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on:
pull_request:
push:
branches:
- portable-python
workflow_dispatch:
inputs:
verbose:
required: false
type: boolean
jobs:
tests:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: [macos-latest]
python-version: [3.8.18, 3.9.18, 3.10.13]
name: python-${{ matrix.python-version }}-${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: 3.13.5
- name: Install tools
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 \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13 \
-DCMAKE_C_STANDARD=99 \
-DPYTHON_VERSION=${{ matrix.python-version }} \
..
make -j4
make install
- name: Check sysconfig
run: |
./python-install/bin/python -m sysconfig
- name: Test
run: |
./python-install/bin/python -m test || true