From 6c88f515c33c98781bfcaa0c72d58a9f501b5773 Mon Sep 17 00:00:00 2001 From: Florian OMNES Date: Tue, 22 Feb 2022 17:24:50 +0100 Subject: [PATCH] Parametrize sub-directory --- .github/workflows/ubuntu-reference.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ubuntu-reference.yml b/.github/workflows/ubuntu-reference.yml index d241a8b..491a92f 100644 --- a/.github/workflows/ubuntu-reference.yml +++ b/.github/workflows/ubuntu-reference.yml @@ -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: @@ -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 @@ -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 @@ -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