-
Notifications
You must be signed in to change notification settings - Fork 31
99 lines (94 loc) · 2.89 KB
/
test.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
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
name: Test
on:
push:
branches:
- develop
- staging
- trying
pull_request:
env:
ARROW_VERSION: "7.0.0"
jobs:
cpp:
name: "C++"
strategy:
fail-fast: false
matrix:
source:
- codegen/cpp/fletchgen
- runtime/cpp
- platforms/echo/runtime
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Apache Arrow
run: |
wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
sudo apt-get install -y ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
sudo apt-get update
sudo apt-get install -y libarrow-dev=$ARROW_VERSION-1
- name: Configure
run: |
cmake ${{ matrix.source }} -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Debug
- name: Build
run: |
make -j
- name: Test
run: |
make test
python:
name: Python
strategy:
fail-fast: false
matrix:
source:
- runtime/python
- codegen/python
include:
- source: runtime/python
package: pyfletcher
- source: codegen/python
package: pyfletchgen
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Apache Arrow
run: |
wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
sudo apt-get install -y ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
sudo apt-get update
sudo apt-get install -y libarrow-dev=$ARROW_VERSION-1 libarrow-python-dev=$ARROW_VERSION-1
- uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install pyarrow
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install pyarrow==$ARROW_VERSION
- name: Build and install
working-directory: ${{ matrix.source }}
run: |
python setup.py build
python setup.py bdist_wheel
python -m pip install build/dist/*.whl
- name: Import
run: python -c "import ${{ matrix.package }}"
vhdl:
name: VHDL
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: ghdl/setup-ghdl-ci@master
with:
backend: llvm
- uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install vhdeps
- name: vhdeps
run: vhdeps -i hardware ghdl -- --pattern '*_tc' --pattern ':!*/vhlib/*'