forked from abumq/licensepp
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (54 loc) · 1.4 KB
/
run-tests.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
name: Tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install GTest
run: |
sudo apt-get install libgtest-dev
cd /usr/src/googletest/googletest
sudo mkdir build
cd build
sudo cmake ..
sudo make
ls -lh lib
sudo cp lib/libgtest* /usr/local/lib/
#sudo make install
#cd ..
#sudo rm -rf build
#sudo mkdir /usr/local/lib/googletest
#sudo ln -s /usr/lib/libgtest.a /usr/local/lib/googletest/libgtest.a
#sudo ln -s /usr/lib/libgtest_main.a /usr/local/lib/googletest/libgtest_main.a
- name: Install Crypto++
run: |
wget https://abumq.github.io/downloads/cryptocpp.tar.gz
tar xf cryptocpp.tar.gz
cd cryptopp-CRYPTOPP_5_6_5
wget https://abumq.github.io/downloads/pem_pack.zip
unzip pem_pack.zip
cmake .
make
sudo make install
- name: Install Ripe Cryptography
run: |
git clone git@github.com:abumq/ripe.git
mkdir build
cd build
cmake ..
make
sudo make install
- uses: actions/checkout@v3
- name: Run CMake
run: |
mkdir build
cd build
cmake -Dtest=ON ..
- name: make
run: make
- name: Run tests
run: ./licensepp-unit-tests