-
Notifications
You must be signed in to change notification settings - Fork 2
69 lines (59 loc) · 1.47 KB
/
linux.yml
File metadata and controls
69 lines (59 loc) · 1.47 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
name: Linux
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
x86_64:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: install packages
run: |
sudo apt update
sudo apt install ninja-build autoconf automake
sudo apt install python3-pip
pip3 install --upgrade build
pip3 install cffi
- name: c build
run: |
./build-c.sh
readelf -d build/libecc.so
- name: c tests
run: |
cd build
ctest -C "Release" --rerun-failed --output-on-failure
cd ..
- name: jvm tests
run: |
readelf -d bindings/jvm/libecc-jvm.so
cd bindings/jvm
./gradlew test
cd ../..
- name: python wheel
run: |
cd bindings/python
python3 cffi_build.py
python3 -m build --wheel
cd ../..
- name: python tests
run: |
cd bindings/python
python3 -m unittest
cd ../..
- uses: actions/upload-artifact@v3
with:
name: ecc-linux-x86_64
path: |
build/libecc.so
build/libecc-jvm.so
bindings/python/src/libecc/_libecc_cffi.*.so
retention-days: 10