Skip to content

Commit

Permalink
Parametrize sub-directory
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Feb 22, 2022
1 parent b9a8bfb commit 6c88f51
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ubuntu-reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jobs:
strategy:
matrix:
solver: [8.0.3]
tests: [8.0.0]
tests_ref: [8.0.0]
subdir: [short, medium, long]

steps:

Expand All @@ -36,7 +37,7 @@ jobs:
run: rm antares_simulator.tar.gz

- name: Download Antares_Simulator_Tests
run: wget https://github.com/AntaresSimulatorTeam/Antares_Simulator_Tests/archive/refs/tags/v${{ matrix.tests }}.tar.gz -O antares_simulator_tests.tar.gz
run: wget https://github.com/AntaresSimulatorTeam/Antares_Simulator_Tests/archive/refs/tags/v${{ matrix.tests_ref }}.tar.gz -O antares_simulator_tests.tar.gz

- name: Unpack Antares_Simulator_Tests
run: tar xvf antares_simulator_tests.tar.gz
Expand All @@ -48,7 +49,7 @@ jobs:
run: mv Antares_Simulator_Tests-* Antares_Simulator_Tests

- name: Generate results
run: python3 scripts/generate_reference.py Antares_Simulator_Tests/short-tests antares-${{ matrix.solver }}-Ubuntu-20.04/bin
run: python3 scripts/generate_reference.py Antares_Simulator_Tests/${{ matrix.subdir }}-tests antares-${{ matrix.solver }}-Ubuntu-20.04/bin

- name: tar.xz results
run: tar Jcf Antares_Simulator_Tests.tar.xz Antares_Simulator_Tests
Expand All @@ -58,5 +59,5 @@ jobs:
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: Antares_Simulator_Tests.tar.xz
asset_name: Antares_Simulator_Tests-${{ matrix.solver}}-${{ matrix.tests }}.tar.xz
asset_name: Antares_Simulator_Tests-${{ matrix.solver}}-${{ matrix.tests_ref }}.tar.xz
asset_content_type: application/octet-stream

0 comments on commit 6c88f51

Please sign in to comment.