@@ -209,13 +209,24 @@ jobs:
209
209
210
210
pytest-linux :
211
211
runs-on : " ubuntu-20.04"
212
- needs : [test_linux]
212
+ needs : [build_linux]
213
+ strategy :
214
+ fail-fast : true
215
+ matrix :
216
+ os : ["ubuntu-20.04"]
217
+ cpp_compiler : ["gcc"]
218
+ NEST_BUILD_TYPE : ["FULL"]
213
219
steps :
214
220
- name : " Checkout repository content"
215
221
uses : actions/checkout@v2
216
222
with :
217
223
fetch-depth : 0
218
224
225
+ - name : Download last build...
226
+ uses : actions/download-artifact@v3
227
+ with :
228
+ name : " ${{ matrix.NEST_BUILD_TYPE }}-build-${{ matrix.os }}-${{ matrix.cpp_compiler }}"
229
+
219
230
- name : " Set up Python 3.x"
220
231
uses : actions/setup-python@v2
221
232
with :
@@ -231,7 +242,7 @@ jobs:
231
242
232
243
pytest-mac :
233
244
runs-on : " macos-latest"
234
- needs : [test_macos ]
245
+ needs : [build_macos ]
235
246
steps :
236
247
- name : " Checkout repository content"
237
248
uses : actions/checkout@v2
@@ -322,7 +333,7 @@ jobs:
322
333
make html |& tee sphinx-output.log
323
334
324
335
- name : Upload artifacts
325
- uses : actions/upload-artifact@v2.3.0
336
+ uses : actions/upload-artifact@v3
326
337
with :
327
338
path : |
328
339
build/sphinx-output.log
@@ -361,7 +372,7 @@ jobs:
361
372
make html |& tee sphinx-output.log
362
373
363
374
- name : Upload artifacts
364
- uses : actions/upload-artifact@v2.3.0
375
+ uses : actions/upload-artifact@v3
365
376
with :
366
377
path : |
367
378
build/sphinx-output.log
@@ -445,7 +456,7 @@ jobs:
445
456
xNEST_BUILD_TYPE : ' STATIC_CODE_ANALYSIS'
446
457
CHANGED_FILES : ${{ env.CHANGED_FILES }}
447
458
448
- test_linux :
459
+ build_linux :
449
460
if : ${{ always() && !contains(github.event.head_commit.message, 'ci skip') }}
450
461
runs-on : ${{ matrix.os }}
451
462
needs : [clang-format, cppcheck, mypy, copyright_headers, unused_names, forbidden_types, pylint, flake8]
@@ -456,18 +467,18 @@ jobs:
456
467
matrix :
457
468
os : ["ubuntu-20.04"]
458
469
cpp_compiler : ["gcc", "clang"]
459
- xNEST_BUILD_TYPE : ["MINIMAL", "MPI_ONLY", "OPENMP_ONLY", "FULL"]
470
+ NEST_BUILD_TYPE : ["MINIMAL", "MPI_ONLY", "OPENMP_ONLY", "FULL"]
460
471
exclude :
461
- - xNEST_BUILD_TYPE : " MINIMAL"
472
+ - NEST_BUILD_TYPE : " MINIMAL"
462
473
cpp_compiler : " clang"
463
474
os : " ubuntu-20.04"
464
- - xNEST_BUILD_TYPE : " MPI_ONLY"
475
+ - NEST_BUILD_TYPE : " MPI_ONLY"
465
476
cpp_compiler : " clang"
466
477
os : " ubuntu-20.04"
467
- - xNEST_BUILD_TYPE : " OPENMP_ONLY"
478
+ - NEST_BUILD_TYPE : " OPENMP_ONLY"
468
479
cpp_compiler : " clang"
469
480
os : " ubuntu-20.04"
470
- - xNEST_BUILD_TYPE : " FULL"
481
+ - NEST_BUILD_TYPE : " FULL"
471
482
cpp_compiler : " clang"
472
483
os : " ubuntu-20.04"
473
484
steps :
@@ -523,9 +534,9 @@ jobs:
523
534
$HOME/.ccache
524
535
.ccache
525
536
/home/runner/.ccache
526
- key : ${{ runner.os }}-${{ env.cache-name }}-${{ matrix.xNEST_BUILD_TYPE }}
537
+ key : ${{ runner.os }}-${{ env.cache-name }}-${{ matrix.NEST_BUILD_TYPE }}
527
538
restore-keys : |
528
- ${{ runner.os }}-${{ env.cache-name }}-${{ matrix.xNEST_BUILD_TYPE }}
539
+ ${{ runner.os }}-${{ env.cache-name }}-${{ matrix.NEST_BUILD_TYPE }}
529
540
${{ runner.os }}-${{ env.cache-name }}
530
541
${{ runner.os }}
531
542
@@ -559,35 +570,44 @@ jobs:
559
570
python build_support/parse_build_log.py ci_build.sh.log ${{ github.workspace }}
560
571
ccache -s
561
572
env :
562
- xNEST_BUILD_TYPE : ${{ matrix.xNEST_BUILD_TYPE }}
573
+ xNEST_BUILD_TYPE : ${{ matrix.NEST_BUILD_TYPE }}
563
574
CMAKE_C_COMPILER_LAUNCHER : ccache
564
575
CMAKE_CXX_COMPILER_LAUNCHER : ccache
565
576
CHANGED_FILES : ${{ env.CHANGED_FILES }}
566
577
# get changed files: https://github.com/marketplace/actions/get-changed-files
567
578
568
579
- name : " Upload install and test results"
569
- uses : actions/upload-artifact@v2
580
+ uses : actions/upload-artifact@v3
570
581
if : always()
571
582
with :
572
- name : " test_linux- ${{ matrix.os }}-${{ matrix.cpp_compiler }}-${{ matrix.xNEST_BUILD_TYPE }}-logs "
583
+ name : " ${{ matrix.NEST_BUILD_TYPE }}-build-logs- ${{ matrix.os }}-${{ matrix.cpp_compiler }}"
573
584
path : |
574
585
ci_build.sh.log
575
586
install_manifest.txt
576
587
**.log
577
588
build/reports/**
578
589
579
- test_macos :
590
+ - name : " Upload binary artifacts"
591
+ uses : actions/upload-artifact@v3
592
+ if : ' ${{ matrix.NEST_BUILD_TYPE }} == "FULL"'
593
+ with :
594
+ name : " ${{ matrix.NEST_BUILD_TYPE }}-build-${{ matrix.os }}-${{ matrix.cpp_compiler }}"
595
+ path : |
596
+ build/**
597
+ result/**
598
+
599
+ build_macos :
580
600
if : ${{ !contains(github.event.head_commit.message, 'ci skip') }}
581
601
runs-on : ${{ matrix.os }}
582
- needs : [clang-format, cppcheck, mypy, copyright_headers, unused_names, forbidden_types, test_linux ]
602
+ needs : [clang-format, cppcheck, mypy, copyright_headers, unused_names, forbidden_types, build_linux ]
583
603
env :
584
604
CXX_FLAGS : " -pedantic -Wextra -Woverloaded-virtual -Wno-unknown-pragmas"
585
605
strategy :
586
606
fail-fast : false
587
607
matrix :
588
608
os : [macos-latest]
589
609
cpp_compiler : ["clang"]
590
- xNEST_BUILD_TYPE : ["FULL_MACOS"]
610
+ NEST_BUILD_TYPE : ["FULL_MACOS"]
591
611
steps :
592
612
- name : " Checkout repository content"
593
613
uses : actions/checkout@v2
@@ -627,7 +647,7 @@ jobs:
627
647
run : |
628
648
python -m pip install --upgrade pip setuptools
629
649
python -c "import setuptools; print('package location:', setuptools.__file__)"
630
- python -m pip install --force-reinstall --upgrade scipy " junitparser>=2" numpy pytest pytest-timeout pytest-xdist mpi4py cython matplotlib terminaltables pandoc
650
+ python -m pip install --force-reinstall --upgrade scipy ' junitparser>=2' numpy pytest pytest-timeout pytest-xdist mpi4py cython matplotlib terminaltables pandoc
631
651
python -c "import pytest; print('package location:', pytest.__file__)"
632
652
pip list
633
653
@@ -636,24 +656,33 @@ jobs:
636
656
./build_support/ci_build.sh 2>&1 | tee ci_build.sh.log
637
657
python build_support/parse_build_log.py ci_build.sh.log ${{ github.workspace }}
638
658
env :
639
- xNEST_BUILD_TYPE : ${{ matrix.xNEST_BUILD_TYPE }}
659
+ xNEST_BUILD_TYPE : ${{ matrix.NEST_BUILD_TYPE }}
640
660
CHANGED_FILES : ${{ env.CHANGED_FILES }}
641
661
# get changed files: https://github.com/marketplace/actions/get-changed-files
642
662
643
663
- name : " Upload install and test results"
644
- uses : actions/upload-artifact@v2
664
+ uses : actions/upload-artifact@v3
645
665
if : ${{ always() }}
646
666
with :
647
- name : " test_macos- ${{ matrix.os }}-${{ matrix.cpp_compiler }}-${{ matrix.xNEST_BUILD_TYPE }}-logs "
667
+ name : " ${{ matrix.NEST_BUILD_TYPE }}-build-logs- ${{ matrix.os }}-${{ matrix.cpp_compiler }}"
648
668
path : |
649
669
ci_build.sh.log
650
670
install_manifest.txt
651
671
**.log
652
672
build/reports/**
653
673
674
+ - name : " Upload binary artifacts"
675
+ uses : actions/upload-artifact@v3
676
+ # if: '${{ matrix.NEST_BUILD_TYPE }} == "FULL"'
677
+ with :
678
+ name : " ${{ matrix.NEST_BUILD_TYPE }}-build-${{ matrix.os }}-${{ matrix.cpp_compiler }}"
679
+ path : |
680
+ build/**
681
+ result/**
682
+
654
683
build_conda :
655
684
if : false
656
- needs : [test_linux ]
685
+ needs : [build_linux ]
657
686
uses : conda-forge/nest-simulator-feedstock/.github/workflows/nest_trigger.yml@f9a89c898b4481931fe6b587c05547b42e758e46
658
687
with :
659
688
# see https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
0 commit comments