-
Notifications
You must be signed in to change notification settings - Fork 15
60 lines (57 loc) · 1.54 KB
/
build.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
57
58
59
60
name: Build
on: [push, pull_request]
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
docs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
- shell: pwsh
run: |
cd doc
pip install sphinx
cmd.exe /c 'make.bat html SPHINXOPTS="-W"'
windows-msys2:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
msystem: [MINGW64, MINGW32, UCRT64, CLANG64]
name: Build (${{ matrix.msystem }})
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
update: true
pacboy: cc:p python:p python-setuptools:p python-sphinx:p
- name: Build
run: CC=cc python setup.py build
- name: Check
run: |
CC=cc python setup.py build_ext --inplace
python -c "import winkerberos;print(winkerberos.__version__)"
windows-msvc:
runs-on: windows-latest
name: Build MSVC
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Check
run: |
pip install -e .
python -c "import winkerberos;print(winkerberos.__version__)"