This repository has been archived by the owner on Jun 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
92 lines (79 loc) · 2.64 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
# Build and Test with different crypto libs and compilers
name: tests
on:
push:
branches:
- production
- staging
- dev*
pull_request:
branches:
- production
- staging
- dev*
env:
CTEST_OUTPUT_ON_FAILURE: TRUE
jobs:
ninja_clang_sodium:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: install requirements
run: |
sudo apt update
sudo apt install -y ninja-build libcurl4-openssl-dev build-essential
- name: Debug build
run: |
cmake --version
clang --version
mkdir build && cd build
cmake -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX=$PWD -DCryptoUse=libsodium -DIOTA_ASAN_ENABLED=ON -DIOTA_WALLET_ENABLE=ON ..
ninja -v && ninja test
- name: Release build
run: |
rm -rf build && sync
mkdir build && cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX=$PWD -DCryptoUse=libsodium -DIOTA_WALLET_ENABLE=ON ..
ninja && ninja test
make_gcc_openssl:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: install requirements
run: |
sudo apt update
sudo apt install -y libcurl4-openssl-dev clang-format build-essential
- name: Debug build
run: |
cmake --version
gcc --version
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=$PWD -DIOTA_TESTS=ON -DIOTA_ASAN_ENABLED=ON -DCryptoUse=openssl ..
make -j8 && make test
- name: Release build
run: |
rm -rf build && sync
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PWD -DIOTA_TESTS=ON -DCryptoUse=openssl ..
make -j8 && make test
make_gcc_mbedtls:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: install requirements
run: |
sudo apt update
sudo apt install -y libcurl4-openssl-dev clang-format build-essential
- name: Debug build
run: |
cmake --version
gcc --version
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=$PWD -DIOTA_TESTS=ON -DIOTA_ASAN_ENABLED=ON -DCryptoUse=mbedtls ..
make -j8 && make test
- name: Release build
run: |
rm -rf build && sync
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PWD -DIOTA_TESTS=ON -DCryptoUse=mbedtls ..
make -j8 && make test