-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (39 loc) · 999 Bytes
/
make_and_exmples.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
name: C/C++ CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: install libzip
run: sudo apt install -y libzip-dev
- uses: actions/checkout@v3
- name: configure
run: ./configure
- name: make
run: make
- name: make examples
run: |
cd example
make
- name: Run examples
run: |
cd example
# Since the library is not installed (maybe test that as well?) We must set LD_LIBRARY_PATH
export LD_LIBRARY_PATH=./..
./how_to_save
diff my_4_by_3_array_shortcut.npy my_4_by_3_array.npy
./how_to_save_npz
./how_to_load my_4_by_3_array_shortcut.npy
./how_to_load_npz iarray_and_darray.npz
./copying
./copying_read
- name: Test install
run: |
sudo make install
unset LD_LIBRARY_PATH
cd example
./how_to_save