|
10 | 10 | EXECUTABLE_NAME: nons |
11 | 11 | TEST_EXECUTABLE_NAME: test_nons |
12 | 12 | METRICS_ARTIFACT_DIR: metrics |
| 13 | + OLD_METRICS_ARTIFACT_DIR: metrics/old |
| 14 | + NEW_METRICS_ARTIFACT_DIR: metrics/new |
13 | 15 |
|
14 | 16 | jobs: |
15 | 17 | clang-format: |
@@ -71,11 +73,14 @@ jobs: |
71 | 73 | - name: Add executable flag |
72 | 74 | run: chmod +x ${{env.EXECUTABLE_NAME}} |
73 | 75 |
|
74 | | - - name: Run simulation |
75 | | - run: python3 scripts/run_simulations.py -e ./${{env.EXECUTABLE_NAME}} -c configuration_examples/simulation_examples --output-dir ./${{env.METRICS_ARTIFACT_DIR}} |
| 76 | + - name: Run old simulations |
| 77 | + run: python3 scripts/run_simulations.py -e ./${{env.EXECUTABLE_NAME}} --no-logs -c configuration_examples/simulation_examples --output-dir ./${{env.OLD_METRICS_ARTIFACT_DIR}} |
| 78 | + |
| 79 | + - name: Run new simulations |
| 80 | + run: python3 scripts/run_new_simulations.py -e ./${{env.EXECUTABLE_NAME}} --no-logs -c configs/scenario-configs.txt --output-dir ./${{env.NEW_METRICS_ARTIFACT_DIR}} |
76 | 81 |
|
77 | 82 | - name: Create html |
78 | | - run: python3 scripts/generate-html.py ./metrics |
| 83 | + run: python3 scripts/generate-html.py ./${{env.METRICS_ARTIFACT_DIR}} |
79 | 84 |
|
80 | 85 | - name: Upload metrics |
81 | 86 | uses: actions/upload-artifact@v4 |
|
89 | 94 | - name: Calculate deploy destination dir |
90 | 95 | run: | |
91 | 96 | DEPLOY_DIR=$(python3 scripts/calculate_deploy_dir.py -c github_context.json); |
92 | | - echo "DEPLOY_DIR=${DEPLOY_DIR}/${{env.METRICS_ARTIFACT_DIR}}" >> $GITHUB_ENV; |
| 97 | + echo "DEPLOY_DIR=${DEPLOY_DIR}/${{env.METRICS_ARTIFACT_DIR}}" >> $GITHUB_ENV; |
93 | 98 |
|
94 | 99 | - name: Deploy to GitHub Pages |
95 | 100 | if: ${{env.DEPLOY_DIR}} != '' |
@@ -126,15 +131,15 @@ jobs: |
126 | 131 | needs: build |
127 | 132 | steps: |
128 | 133 | - uses: actions/checkout@v4 |
129 | | - |
| 134 | + |
130 | 135 | - name: Download nons executable |
131 | 136 | uses: actions/download-artifact@v4 |
132 | 137 | with: |
133 | 138 | name: build-artifact |
134 | 139 |
|
135 | 140 | - name: Add executable flag |
136 | 141 | run: chmod +x ${{env.EXECUTABLE_NAME}} |
137 | | - |
| 142 | + |
138 | 143 | - name: Update PYTHONPOATH |
139 | 144 | run: echo "PYTHONPATH=${{ github.workspace }}/scripts" >> $GITHUB_ENV |
140 | 145 |
|
|
0 commit comments