-
Notifications
You must be signed in to change notification settings - Fork 8
181 lines (179 loc) · 8 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
name: test
on: [push, pull_request]
jobs:
linux:
strategy:
fail-fast: false
matrix:
test:
- honk_rpc_cargo_test
- tor_interface_crypto_cargo_test
- tor_interface_tor_provider_cargo_test
- tor_interface_mock_authenticated_onion_service_cargo_test
- tor_interface_mock_bootstrap_cargo_test
- tor_interface_mock_onion_service_cargo_test
- tor_interface_arti_bootstrap_cargo_test
- tor_interface_arti_client_authenticated_onion_service_cargo_test
- tor_interface_arti_client_bootstrap_cargo_test
- tor_interface_arti_client_onion_service_cargo_test
- tor_interface_legacy_authenticated_onion_service_cargo_test
- tor_interface_legacy_bootstrap_cargo_test
- tor_interface_legacy_onion_service_cargo_test
- tor_interface_legacy_pluggable_transport_bootstrap_cargo_test
- tor_interface_system_legacy_authenticated_onion_service_cargo_test
- tor_interface_system_legacy_onion_service_cargo_test
- tor_interface_mixed_arti_client_legacy_authenticated_onion_service_cargo_test
- tor_interface_mixed_arti_client_legacy_onion_service_cargo_test
- tor_interface_mixed_legacy_arti_client_authenticated_onion_service_cargo_test
- tor_interface_mixed_legacy_arti_client_onion_service_cargo_test
# - tor_interface_mixed_arti_legacy_onion_service_cargo_test
- tor_interface_mixed_legacy_arti_onion_service_cargo_test
# - tor_interface_mixed_arti_legacy_authenticated_onion_service_cargo_test
# - tor_interface_mixed_legacy_arti_authenticated_onion_service_cargo_test
- gosling_cargo_test
- cgosling_cargo_test
- gosling_cpp_bindings_test
- gosling_java_bindings_test
runs-on: ubuntu-latest
steps:
- name: Checkout Gosling
uses: actions/checkout@v4
with:
submodules: true
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libboost-all-dev tor libsqlite3-dev
- name: Install arti
run: |
cargo install arti --all-features
- name: Test
run: |
mkdir build
cmake -G "Unix Makefiles" -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_TESTS=ON -DENABLE_ARTI_CLIENT_TOR_PROVIDER=ON -DENABLE_ARTI_TOR_PROVIDER=ON -DENABLE_TOR_EXPERT_BUNDLE=ON -DBUILD_JAVA_BINDINGS=ON
cd build
ctest --verbose -R ^${{matrix.test}}
windows:
strategy:
fail-fast: false
matrix:
test:
- honk_rpc_cargo_test
- tor_interface_crypto_cargo_test
- tor_interface_tor_provider_cargo_test
- tor_interface_mock_authenticated_onion_service_cargo_test
- tor_interface_mock_bootstrap_cargo_test
- tor_interface_mock_onion_service_cargo_test
- tor_interface_arti_bootstrap_cargo_test
- tor_interface_arti_client_authenticated_onion_service_cargo_test
- tor_interface_arti_client_bootstrap_cargo_test
- tor_interface_arti_client_onion_service_cargo_test
- tor_interface_legacy_authenticated_onion_service_cargo_test
- tor_interface_legacy_bootstrap_cargo_test
- tor_interface_legacy_onion_service_cargo_test
- tor_interface_legacy_pluggable_transport_bootstrap_cargo_test
- tor_interface_system_legacy_authenticated_onion_service_cargo_test
- tor_interface_system_legacy_onion_service_cargo_test
- tor_interface_mixed_arti_client_legacy_authenticated_onion_service_cargo_test
- tor_interface_mixed_arti_client_legacy_onion_service_cargo_test
- tor_interface_mixed_legacy_arti_client_authenticated_onion_service_cargo_test
- tor_interface_mixed_legacy_arti_client_onion_service_cargo_test
# - tor_interface_mixed_arti_legacy_onion_service_cargo_test
- tor_interface_mixed_legacy_arti_onion_service_cargo_test
# - tor_interface_mixed_arti_legacy_authenticated_onion_service_cargo_test
# - tor_interface_mixed_legacy_arti_authenticated_onion_service_cargo_test
- gosling_cargo_test
- cgosling_cargo_test
- gosling_cpp_bindings_test
- gosling_java_bindings_test
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout Gosling
uses: actions/checkout@v4
with:
submodules: true
- name: Install MSYS2 Dependencies
uses: msys2/setup-msys2@v2
with:
msystem: clang64
update: true
install: >-
make
mingw-w64-clang-x86_64-cmake
mingw-w64-clang-x86_64-clang
mingw-w64-clang-x86_64-rust
mingw-w64-clang-x86_64-boost
mingw-w64-clang-x86_64-tor
mingw-w64-clang-x86_64-sqlite3
- name: Install Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
architecture: x86_64
- name: Install arti
run: |
cargo install arti --all-features
- name: Test
env:
CC: clang
run: |
export PATH=$(cygpath -u ${JAVA_HOME})/bin:$PATH
mkdir build
cmake -G "Unix Makefiles" -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_TESTS=ON -DENABLE_ARTI_CLIENT_TOR_PROVIDER=ON -DENABLE_ARTI_TOR_PROVIDER=ON -DENABLE_TOR_EXPERT_BUNDLE=ON -DBUILD_JAVA_BINDINGS=ON
cd build
ctest --verbose -R ^${{matrix.test}}
macos:
strategy:
fail-fast: false
matrix:
test:
- honk_rpc_cargo_test
- tor_interface_crypto_cargo_test
- tor_interface_tor_provider_cargo_test
- tor_interface_mock_authenticated_onion_service_cargo_test
- tor_interface_mock_bootstrap_cargo_test
- tor_interface_mock_onion_service_cargo_test
- tor_interface_arti_bootstrap_cargo_test
- tor_interface_arti_client_authenticated_onion_service_cargo_test
- tor_interface_arti_client_bootstrap_cargo_test
- tor_interface_arti_client_onion_service_cargo_test
- tor_interface_legacy_authenticated_onion_service_cargo_test
- tor_interface_legacy_bootstrap_cargo_test
- tor_interface_legacy_onion_service_cargo_test
- tor_interface_legacy_pluggable_transport_bootstrap_cargo_test
- tor_interface_system_legacy_authenticated_onion_service_cargo_test
- tor_interface_system_legacy_onion_service_cargo_test
- tor_interface_mixed_arti_client_legacy_authenticated_onion_service_cargo_test
- tor_interface_mixed_arti_client_legacy_onion_service_cargo_test
- tor_interface_mixed_legacy_arti_client_authenticated_onion_service_cargo_test
- tor_interface_mixed_legacy_arti_client_onion_service_cargo_test
# - tor_interface_mixed_arti_legacy_onion_service_cargo_test
- tor_interface_mixed_legacy_arti_onion_service_cargo_test
# - tor_interface_mixed_arti_legacy_authenticated_onion_service_cargo_test
# - tor_interface_mixed_legacy_arti_authenticated_onion_service_cargo_test
- gosling_cargo_test
- cgosling_cargo_test
- gosling_cpp_bindings_test
- gosling_java_bindings_test
runs-on: macos-latest
steps:
- name: Checkout Gosling
uses: actions/checkout@v4
with:
submodules: true
- name: Install Dependencies
run: |
brew install boost tor sqlite3
- name: Install arti
run: |
cargo install arti --all-features
- name: Test
run: |
mkdir build
cmake -G "Unix Makefiles" -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_TESTS=ON -DENABLE_ARTI_CLIENT_TOR_PROVIDER=ON -DENABLE_ARTI_TOR_PROVIDER=ON -DENABLE_TOR_EXPERT_BUNDLE=ON -DBUILD_JAVA_BINDINGS=ON
cd build
ctest --verbose -R ^${{matrix.test}}