-
Notifications
You must be signed in to change notification settings - Fork 65
61 lines (58 loc) · 1.83 KB
/
main.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:
schedule:
#Every 5 days at midnight
- cron: "0 0 1/5 * *"
jobs:
compilejobFedora:
strategy:
fail-fast: false
matrix:
version: [26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40]
runs-on: ubuntu-latest
name: Binder_on_Fedora${{ matrix.version }}
container:
image: fedora:${{ matrix.version }}
steps:
- name: Install
run: |
set -x
uname -a
cat /etc/issue
yum -y install git zlib zlib-devel ncurses-devel clang clang-devel clang-libs llvm llvm-devel llvm-static \
libcxx-devel cmake make gcc gcc-c++ \
pybind11-devel python3 python3-devel python2 python2-devel && yum -y clean all
- name: Checkout
uses: actions/checkout@v3
- name: Compile
run: |
cmake CMakeLists.txt
make
make install
ldd source/binder
ldd -u -r source/binder || echo "OK"
ctest . --output-on-failure
compilejobOSX:
runs-on: macos-latest
name: Binder_on_OSX
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install
run: |
set -x
brew install wget coreutils xz pybind11 git
wget --no-verbose https://github.com/llvm/llvm-project/releases/download/llvmorg-11.0.0/clang+llvm-11.0.0-x86_64-apple-darwin.tar.xz
ls
tar -xJf clang+llvm-11.0.0-x86_64-apple-darwin.tar.xz
export PATH=$PATH:clang+llvm-11.0.0-x86_64-apple-darwin/bin
- name: Compile
run: |
export PATH=$PATH:clang+llvm-11.0.0-x86_64-apple-darwin/bin
cmake CMakeLists.txt
make
make install
otool -L source/binder
ctest . --output-on-failure