forked from vapoursynth/vapoursynth
-
Notifications
You must be signed in to change notification settings - Fork 4
64 lines (50 loc) · 1.42 KB
/
macos.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
61
62
63
64
name: macOS
on: [push, pull_request, workflow_dispatch]
jobs:
build-clang:
runs-on: macos-latest
env:
CC: clang
CXX: clang++
steps:
- uses: actions/checkout@v3
- name: Print compiler version
run: ${{ env.CC }} --version
- name: Install autotools
run: |
brew update
brew install automake autoconf libtool pkg-config
- name: Install zimg
run: |
git clone https://github.com/sekrit-twc/zimg --branch v3.0 --depth 1
pushd zimg
./autogen.sh
./configure
make -j3
sudo make install -j3
popd
rm -rf zimg
- name: Setup Python
uses: actions/setup-python@v4
with:
# Version range or exact version of a Python version to use, using SemVer's version range syntax.
python-version: 3.9
- name: Install cython
run: |
python -m pip install --upgrade pip
pip install cython
- name: Set PKG_CONFIG_PATH
run: echo "PKG_CONFIG_PATH=$pythonLocation/lib/pkgconfig" >> $GITHUB_ENV
- name: configure
run: |
./autogen.sh
# somehow newer macOS imagemagick requires -fopenmp to build?
./configure --disable-imwri
- name: make
run: make -j3
- name: make install
run: |
sudo make install -j3
pip install .
- name: Run test
run: python -m unittest discover -s test -p "*test.py"