@@ -19,7 +19,15 @@ concurrency:
1919jobs :
2020
2121 build :
22- runs-on : ubuntu-latest
22+ strategy :
23+ fail-fast : true
24+ matrix :
25+ runner :
26+ - ubuntu-latest
27+ - macos-latest
28+ outputs :
29+ default_runner : ubuntu-latest
30+ runs-on : ${{ matrix.runner }}
2331 steps :
2432 - uses : actions/checkout@v3
2533 - name : Set up JDK
@@ -33,16 +41,17 @@ jobs:
3341 run : tar czvf coatjava.tar.gz coatjava
3442 - uses : actions/upload-artifact@v3
3543 with :
36- name : build
44+ name : build_${{ matrix.runner }}
3745 retention-days : 1
3846 path : coatjava.tar.gz
3947
4048 test_coatjava :
4149 needs : [ build ]
42- runs-on : ubuntu-latest
4350 strategy :
4451 fail-fast : true
4552 matrix :
53+ runner :
54+ - ubuntu-latest
4655 id :
4756 - kpp
4857 - eb-ep
@@ -51,12 +60,17 @@ jobs:
5160 - eb-enc
5261 - eb-eftpi
5362 include :
63+ # run all tests on ubuntu
5464 - { id: kpp, cmd: ./run-advanced-tests.sh }
5565 - { id: eb-ep, cmd: ./run-eb-tests.sh -100 electronproton }
5666 - { id: eb-eg, cmd: ./run-eb-tests.sh -100 electrongamma }
5767 - { id: eb-epc, cmd: ./run-eb-tests.sh -100 electronprotonC }
5868 - { id: eb-enc, cmd: ./run-eb-tests.sh -100 electronneutronC }
5969 - { id: eb-eftpi, cmd: ./run-eb-tests.sh -100 electronFTpion }
70+ # run one macos test
71+ - { runner: macos-latest, id: eb-ep, cmd: ./run-eb-tests.sh -100 electronproton }
72+
73+ runs-on : ${{ matrix.runner }}
6074 steps :
6175 - uses : actions/checkout@v3
6276 - name : Set up JDK
@@ -66,17 +80,18 @@ jobs:
6680 distribution : zulu
6781 - uses : actions/download-artifact@v3
6882 with :
69- name : build
83+ name : build_${{ matrix.runner }}
7084 - name : untar build
7185 run : tar xzvf coatjava.tar.gz
7286 - name : run test
7387 run : |
7488 cd validation/advanced-tests
75- ${{matrix.cmd}}
89+ echo "COMMAND: ${{ matrix.cmd }}"
90+ ${{ matrix.cmd }}
7691
7792 test_run-groovy :
7893 needs : [ build ]
79- runs-on : ubuntu-latest
94+ runs-on : ${{ needs.build.outputs.default_runner }}
8095 steps :
8196 - uses : actions/checkout@v3
8297 - name : Set up JDK
90105 groovy-version : 4.x
91106 - uses : actions/download-artifact@v3
92107 with :
93- name : build
108+ name : build_${{ needs. build.outputs.default_runner }}
94109 - name : untar build
95110 run : tar xzvf coatjava.tar.gz
96111 - name : test run-groovy
@@ -100,7 +115,7 @@ jobs:
100115 needs :
101116 - test_coatjava
102117 - test_run-groovy
103- runs-on : ubuntu-latest
118+ runs-on : ${{ needs.build.outputs.default_runner }}
104119 if : always()
105120 steps :
106121 - name : fail
0 commit comments