@@ -137,13 +137,23 @@ jobs:
137
137
138
138
139
139
- name : Run setup config
140
+ if : runner.os != 'Linux'
140
141
run : |
141
142
cd engine
142
143
echo "huggingFaceToken: ${{ secrets.HUGGINGFACE_TOKEN_READ }}" > ~/.cortexrc
143
144
echo "gitHubToken: ${{ secrets.PAT_SERVICE_ACCOUNT }}" >> ~/.cortexrc
144
145
# ./build/cortex
145
146
cat ~/.cortexrc
146
147
148
+ - name : Run setup config
149
+ if : runner.os == 'Linux'
150
+ run : |
151
+ cd engine
152
+ echo "huggingFaceToken: ${{ secrets.HUGGINGFACE_TOKEN_READ }}" > ~/.config/cortexcpp/.cortexrc
153
+ echo "gitHubToken: ${{ secrets.PAT_SERVICE_ACCOUNT }}" >> ~/.config/cortexcpp/.cortexrc
154
+ # ./build/cortex
155
+ cat ~/.config/cortexcpp/.cortexrc
156
+
147
157
- name : Run unit tests
148
158
run : |
149
159
cd engine
@@ -152,13 +162,24 @@ jobs:
152
162
GITHUB_TOKEN : ${{ secrets.PAT_SERVICE_ACCOUNT }}
153
163
154
164
- name : Run setup config
165
+ if : runner.os != 'Linux'
155
166
run : |
156
167
cd engine
157
168
echo "apiServerPort: 3928" > ~/.cortexrc
158
169
echo "huggingFaceToken: ${{ secrets.HUGGINGFACE_TOKEN_READ }}" >> ~/.cortexrc
159
170
echo "gitHubToken: ${{ secrets.PAT_SERVICE_ACCOUNT }}" >> ~/.cortexrc
160
171
# ./build/cortex
161
172
cat ~/.cortexrc
173
+
174
+ - name : Run setup config
175
+ if : runner.os == 'Linux'
176
+ run : |
177
+ cd engine
178
+ echo "apiServerPort: 3928" > ~/.config/cortexcpp/.cortexrc
179
+ echo "huggingFaceToken: ${{ secrets.HUGGINGFACE_TOKEN_READ }}" >> ~/.config/cortexcpp/.cortexrc
180
+ echo "gitHubToken: ${{ secrets.PAT_SERVICE_ACCOUNT }}" >> ~/.config/cortexcpp/.cortexrc
181
+ # ./build/cortex
182
+ cat ~/.config/cortexcpp/.cortexrc
162
183
163
184
- name : Run e2e tests
164
185
if : github.event_name != 'schedule' && runner.os != 'Windows' && github.event.pull_request.draft == false
@@ -414,12 +435,21 @@ jobs:
414
435
make build CMAKE_EXTRA_FLAGS="${{ matrix.cmake-flags }}" BUILD_DEPS_CMAKE_EXTRA_FLAGS="${{ matrix.build-deps-cmake-flags }}"
415
436
416
437
- name : Run setup config
438
+ if : runner.os != 'Linux'
417
439
run : |
418
440
cd engine
419
441
echo "gitHubToken: ${{ secrets.GITHUB_TOKEN }}" > ~/.cortexrc
420
442
# ./build/cortex
421
443
cat ~/.cortexrc
422
444
445
+ - name : Run setup config
446
+ if : runner.os == 'Linux'
447
+ run : |
448
+ cd engine
449
+ echo "gitHubToken: ${{ secrets.GITHUB_TOKEN }}" > ~/.config/cortexcpp/.cortexrc
450
+ # ./build/cortex
451
+ cat ~/.config/cortexcpp/.cortexrc
452
+
423
453
- name : Run unit tests
424
454
run : |
425
455
cd engine
@@ -428,12 +458,22 @@ jobs:
428
458
GITHUB_TOKEN : ${{ secrets.PAT_SERVICE_ACCOUNT }}
429
459
430
460
- name : Run setup config
461
+ if : runner.os != 'Linux'
431
462
run : |
432
463
cd engine
433
464
echo "apiServerPort: 3928" > ~/.cortexrc
434
465
echo "gitHubToken: ${{ secrets.GITHUB_TOKEN }}" > ~/.cortexrc
435
466
# ./build/cortex
436
467
cat ~/.cortexrc
468
+
469
+ - name : Run setup config
470
+ if : runner.os == 'Linux'
471
+ run : |
472
+ cd engine
473
+ echo "apiServerPort: 3928" > ~/.config/cortexcpp/.cortexrc
474
+ echo "gitHubToken: ${{ secrets.GITHUB_TOKEN }}" > ~/.config/cortexcpp/.cortexrc
475
+ # ./build/cortex
476
+ cat ~/.config/cortexcpp/.cortexrc
437
477
438
478
- name : Run e2e tests
439
479
if : github.event_name != 'schedule' && runner.os != 'Windows' && github.event.pull_request.draft == false
0 commit comments