@@ -17,16 +17,18 @@ jobs:
17
17
- os : ubuntu-20.04
18
18
python-version : ' 3.10'
19
19
- os : ubuntu-20.04
20
- python-version : pypy3
20
+ python-version : pypy3.7
21
21
- os : macos-latest
22
22
python-version : 3.7
23
+ - os : windows-2019
24
+ python-version : 3.7
23
25
24
26
steps :
25
27
- name : Checkout pygit2
26
- uses : actions/checkout@v2
28
+ uses : actions/checkout@v3
27
29
28
30
- name : Set up Python
29
- uses : actions/setup-python@v2
31
+ uses : actions/setup-python@v4
30
32
with :
31
33
python-version : ${{ matrix.python-version }}
32
34
@@ -44,35 +46,61 @@ jobs:
44
46
export LIBGIT2_VERSION=1.4.3
45
47
/bin/sh build.sh test
46
48
47
- aarch64 :
48
- runs-on : ubuntu-20.04
49
- steps :
50
- - name : Checkout pygit2
51
- uses : actions/checkout@v2
52
- - name : Build & test
53
- uses : uraimo/run-on-arch-action@v2.2.0
54
- with :
55
- arch : aarch64
56
- distro : ubuntu20.04
57
- install : |
58
- apt-get update -q -y
59
- apt-get install -q -y cmake libssl-dev python3-dev python3-venv wget
60
- run : |
61
- LIBSSH2_VERSION=1.10.0 LIBGIT2_VERSION=1.4.3 /bin/sh build.sh test
49
+ - name : Windows
50
+ if : runner.os == 'Windows'
51
+ shell : bash
52
+ env :
53
+ ARCH : amd64
54
+ CMAKE_GENERATOR : Visual Studio 16 2019
55
+ CMAKE_OPTIONS : -A x64 -DWIN32_LEAKCHECK=ON -DDEPRECATE_HARD=ON
56
+ SKIP_SSH_TESTS : true
57
+ SKIP_NEGOTIATE_TESTS : true
58
+ run : |
59
+ pwd
60
+ export LIBGIT2=`realpath venv`
61
+ git clone --depth=1 -b v1.4.2 https://github.com/libgit2/libgit2.git libgit2
62
+ cd libgit2
63
+ cmake . -DBUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$LIBGIT2 -G "Visual Studio 16 2019"
64
+ cmake --build . --target install
65
+ cd ..
66
+ pip install wheel
67
+ pip install pytest
68
+ python setup.py build_ext --inplace
69
+ ls -ltr pygit2
70
+ python --version
71
+ file /d/a/pygit2/pygit2/pygit2/_pygit2.cp37-win_amd64.pyd
72
+ PYTHONPATH=. pytest
62
73
63
- s390x :
64
- runs-on : ubuntu-20.04
65
- steps :
66
- - name : Checkout pygit2
67
- uses : actions/checkout@v2
68
- - name : Build & test
69
- uses : uraimo/run-on-arch-action@v2.2.0
70
- with :
71
- arch : s390x
72
- distro : ubuntu20.04
73
- install : |
74
- apt-get update -q -y
75
- apt-get install -q -y cmake libssl-dev python3-dev python3-venv wget
76
- run : |
77
- LIBSSH2_VERSION=1.10.0 LIBGIT2_VERSION=1.4.3 /bin/sh build.sh test
78
- continue-on-error : true # Tests are expected to fail, see issue #812
74
+
75
+ # aarch64:
76
+ # runs-on: ubuntu-20.04
77
+ # steps:
78
+ # - name: Checkout pygit2
79
+ # uses: actions/checkout@v2
80
+ # - name: Build & test
81
+ # uses: uraimo/run-on-arch-action@v2.2.0
82
+ # with:
83
+ # arch: aarch64
84
+ # distro: ubuntu20.04
85
+ # install: |
86
+ # apt-get update -q -y
87
+ # apt-get install -q -y cmake libssl-dev python3-dev python3-venv wget
88
+ # run: |
89
+ # LIBSSH2_VERSION=1.10.0 LIBGIT2_VERSION=1.4.3 /bin/sh build.sh test
90
+
91
+ # s390x:
92
+ # runs-on: ubuntu-20.04
93
+ # steps:
94
+ # - name: Checkout pygit2
95
+ # uses: actions/checkout@v2
96
+ # - name: Build & test
97
+ # uses: uraimo/run-on-arch-action@v2.2.0
98
+ # with:
99
+ # arch: s390x
100
+ # distro: ubuntu20.04
101
+ # install: |
102
+ # apt-get update -q -y
103
+ # apt-get install -q -y cmake libssl-dev python3-dev python3-venv wget
104
+ # run: |
105
+ # LIBSSH2_VERSION=1.10.0 LIBGIT2_VERSION=1.4.3 /bin/sh build.sh test
106
+ # continue-on-error: true # Tests are expected to fail, see issue #812
0 commit comments