-
Notifications
You must be signed in to change notification settings - Fork 32
80 lines (77 loc) · 2.45 KB
/
Copy pathexamples.yml
File metadata and controls
80 lines (77 loc) · 2.45 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
name: Examples
on:
push:
branches:
- develop
- staging
- trying
pull_request:
jobs:
prepare:
name: Prepare
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux_2_28_x86_64:latest
env:
ARROW_VERSION: "17.0.0"
CPYTHON_VERSION: "cp310-cp310"
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
yum install -y epel-release
yum install -y make gcc-c++ rpm-build git cmake
- name: Enable powertools for Almalinux 8
run: dnf config-manager --set-enabled powertools
- name: Install Apache Arrow
run: |
yum install -y https://apache.jfrog.io/artifactory/arrow/almalinux/$(cut -d: -f5 /etc/system-release-cpe)/apache-arrow-release-latest.rpm
yum install -y arrow-devel-$ARROW_VERSION-1.el8 arrow$(echo $ARROW_VERSION | cut -d . -f 1)00-dataset-libs
- name: Install dependencies
run: /opt/python/$CPYTHON_VERSION/bin/python -m pip install --upgrade pip setuptools wheel auditwheel pyarrow==$ARROW_VERSION
- name: Build wheel
working-directory: codegen/python
run: |
/opt/python/$CPYTHON_VERSION/bin/python setup.py bdist_wheel
/opt/python/$CPYTHON_VERSION/bin/python -m auditwheel repair build/dist/*.whl
- uses: actions/upload-artifact@v4
with:
name: wheel
path: codegen/python/wheelhouse/*.whl
test:
name: Test
runs-on: ubuntu-latest
needs: prepare
env:
PYTHON_VERSION: "3.10"
strategy:
fail-fast: false
matrix:
source:
- examples/stringwrite/hardware
- examples/sum/hardware
- codegen/test/primmap
- codegen/test/stringread
- codegen/test/listprim
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/download-artifact@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install vhdmmio vhdeps
python -m pip install --find-links=wheel pyfletchgen
- uses: ghdl/setup-ghdl@v1
with:
backend: llvm
- name: Example
working-directory: ${{ matrix.source }}
env:
FLETCHER_DIR: ${{ github.workspace }}
run: |
make
make sim