From c6c01b71cfbe3ba9f1cc23bbceb53925143b6690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxemilian=20Gr=C3=B6nblom?= Date: Sat, 20 Apr 2024 19:06:41 +0300 Subject: [PATCH] fix: Corrected the license file path in the build workflow --- .github/workflows/build-workflow.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-workflow.yml b/.github/workflows/build-workflow.yml index 015937cb..62fc8266 100644 --- a/.github/workflows/build-workflow.yml +++ b/.github/workflows/build-workflow.yml @@ -114,6 +114,8 @@ jobs: binary-artifact: ${{ steps.output-artifacts.binary }} package-artifact: ${{ steps.output-artifacts.package }} library-artifact: ${{ steps.output-artifacts.library }} + gurobi_license_file: ${{ steps.licensefiles.outputs.gurobi}} + gams_license_file: ${{ steps.licensefiles.outputs.gams }} name: Build SHOT runs-on: [ self-hosted, linux, cmake ] @@ -253,6 +255,13 @@ jobs: shell: bash run: echo "GAMS_OPTIONS=-DHAS_GAMS=on" >> $GITHUB_ENV + - name: Output License files + id: licensefiles + shell: bash + run: | + echo "gurobi=${{ github.workspace }}/ThirdParty/gurobi${{ env.GUROBI_VERSION_WITHOUT_DOT }}/linux64/bin/gurobi.lic" >> $GITHUB_OUTPUT + echo "gams=${{ github.workspace }}/ThirdParty/gams${{ env.GAMS_SHORT_VERSION }}_linux_x64_64_sfx/gamslice.txt" >> $GITHUB_OUTPUT + - name: Configure CMake # Uses bash shell, so we can use the same syntax for environment variable # access regardless of the host operating system @@ -371,8 +380,8 @@ jobs: benchmark_type: "nl" enable_gurobi: ${{ inputs.enable_gurobi }} enable_gams: ${{ inputs.enable_gams }} - gurobi_license_file: ${{ env.GUROBI_LICENSE_FILE }} - gams_license_file: ${{ env.GAMS_LICENSE_FILE }} + gurobi_license_file: ${{ needs.build.outputs.gurobi_license_file }} + gams_license_file: ${{ needs.build.outputs.gams_license_file }} secrets: gurobi_license: ${{ secrets.gurobi_license }} gams_license: ${{ secrets.gams_license }}