-
Notifications
You must be signed in to change notification settings - Fork 10
174 lines (159 loc) · 4.51 KB
/
python-frog.yml
File metadata and controls
174 lines (159 loc) · 4.51 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
name: C/C++/Cython/Python CI
on:
push:
branches: [master]
paths:
- '*.py'
- '*.pyx'
- '*.pxd'
- '.github/**'
pull_request:
branches: [master]
jobs:
notification:
runs-on: ubuntu-latest
name: Notify start to ##gitlama
steps:
- name: IRC notification
uses: Gottox/irc-message-action@v1
with:
server: irc.uvt.nl
channel: '#gitlama'
nickname: GitHub
message: |-
${{ github.actor }} started a build of python-frog
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
compiler: [g++]
steps:
- uses: actions/checkout@v2
- name: Install Build Environment
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get install pkg-config autoconf-archive
fi
- name: Install Dependencies
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get install libicu-dev libxml2-dev libbz2-dev;
sudo apt-get install zlib1g-dev libtar-dev libexttextcat-dev;
sudo apt-get install python3 cython3 python3-lxml python3-pip
fi
- name: install TiccUtils
env:
CXX: ${{ matrix.compiler }}
run: |
git clone https://github.com/LanguageMachines/ticcutils;
cd ticcutils;
bash bootstrap.sh;
./configure;
make;
sudo make install;
cd ..;
- name: install libfolia
env:
CXX: ${{ matrix.compiler }}
run: |
git clone https://github.com/LanguageMachines/libfolia;
cd libfolia;
bash bootstrap.sh;
./configure;
make;
sudo make install;
cd ..;
- name: install uctodata
env:
CXX: ${{ matrix.compiler }}
run: |
git clone https://github.com/LanguageMachines/uctodata;
cd uctodata;
bash bootstrap.sh;
./configure;
make;
sudo make install;
cd ..;
- name: install ucto
env:
CXX: ${{ matrix.compiler }}
run: |
git clone https://github.com/LanguageMachines/ucto;
cd ucto;
bash bootstrap.sh;
./configure;
make;
sudo make install;
cd ..;
- name: install timbl
env:
CXX: ${{ matrix.compiler }}
run: |
git clone https://github.com/LanguageMachines/timbl;
cd timbl;
bash bootstrap.sh;
./configure;
make;
sudo make install;
cd ..;
- name: install mbt
env:
CXX: ${{ matrix.compiler }}
run: |
git clone https://github.com/LanguageMachines/mbt;
cd mbt;
bash bootstrap.sh;
./configure;
make;
sudo make install;
cd ..;
- name: install frogdata
env:
CXX: ${{ matrix.compiler }}
run: |
git clone https://github.com/LanguageMachines/frogdata;
cd frogdata;
bash bootstrap.sh;
./configure;
make;
sudo make install;
cd ..;
- name: install frog
env:
CXX: ${{ matrix.compiler }}
run: |
git clone https://github.com/LanguageMachines/frog;
cd frog;
bash bootstrap.sh;
./configure;
make;
sudo make install;
cd ..;
- name: build and install python frog
env:
CXX: ${{ matrix.compiler }}
run: sudo pip3 install --prefix /usr/local/ .
- name: check
env:
CXX: ${{ matrix.compiler }}
run: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib python3 test.py
continue-on-error: true
- name: Notify IRC of failure
if: ${{ failure() }}
uses: Gottox/irc-message-action@v1
with:
server: irc.uvt.nl
channel: '#gitlama'
nickname: GitHub
message: |-
Building python-frog with ${{ matrix.compiler }} by ${{ github.actor }} on ${{ matrix.os }}: FAILED
- name: Notify IRC of succes
if: ${{ success() }}
uses: Gottox/irc-message-action@v1
with:
server: irc.uvt.nl
channel: '#gitlama'
nickname: GitHub
message: |-
Building python-frog with ${{ matrix.compiler }} by ${{ github.actor }} on ${{ matrix.os }}: SUCCESS