forked from libgit2/pygit2
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.47 KB
/
macos.yml
File metadata and controls
53 lines (47 loc) · 1.47 KB
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
name: macOS
on:
push:
branches:
- master
env:
LIBGIT2_VERSION: 1.1.0
MACOSX_DEPLOYMENT_TARGET: "10.9"
jobs:
build:
name: py-${{ matrix.py.ver }}
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
libgit2: ['maint/v1.1']
py:
- ver: '3.6'
release: '3.6.8' # last Python.org binary release
- ver: '3.7'
release: '3.7.9' # last Python.org binary release
- ver: '3.8'
release: '3.8.7'
- ver: '3.9'
release: '3.9.1'
steps:
- name: Checkout pygit2
uses: actions/checkout@v2
- name: Setup python
run: |
PKG="python-${{ matrix.py.release }}-macosx10.9.pkg"
URL="https://www.python.org/ftp/python/${{ matrix.py.release }}/$PKG"
wget --no-verbose -N "$URL"
sudo installer -pkg $PKG -target /
export PATH=/Library/Frameworks/Python.framework/Versions/${{ matrix.py.ver }}/bin:$PATH
echo "/Library/Frameworks/Python.framework/Versions/${{ matrix.py.ver }}/bin" >> $GITHUB_PATH
which python3
python3 -VV
test "$(python3 -V)" = "Python ${{ matrix.py.release }}"
- name: Build
run: |
/bin/sh build.sh wheel bundle test
- name: Save wheel
uses: actions/upload-artifact@v1
with:
name: "macOS-wheel-py_${{ matrix.py.ver }}-libgit2_${{ env.LIBGIT2_VERSION }}"
path: wheelhouse