Skip to content

Commit

Permalink
fix: Attempt to just pass the name of the artifact directly. ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
maxemiliang committed Nov 11, 2023
1 parent b91f2be commit a616ee5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/benchmarker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ jobs:
with:
python-version: 3.11
cache: 'pip'
working-directory: ${{ github.workspace }}/shot-benchmarker

- shell: bash
run: pip install -r requirements.txt
Expand All @@ -91,13 +90,13 @@ jobs:
- name: Setup GAMS License file
if: ${{ inputs.enable_gams }}
shell: bash
working-directory: ${{github.workspace}}
working-directory: ${{ github.workspace }}
run: echo ${{ secrets.gams_license }} | base64 -d > $GAMS_LICENSE_FILE

- name: Setup Gurobi License file
if: ${{ inputs.enable_gurobi }}
shell: bash
working-directory: ${{github.workspace}}
working-directory: ${{ github.workspace }}
run: echo ${{ secrets.gurobi_license }} | base64 -d > $GRB_LICENSE_FILE

- shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
benchmark_type: "nl"
enable_gurobi: false
enable_gams: false
shot_artifact: ${{ needs.build-test.outputs.binary-artifact }}
shot_artifact: shot-binary-${{ github.sha }}
secrets:
gurobi_license: ${{ secrets.GUROBI_LICENSE_FILE }}
gams_license: ${{ secrets.GAMS_LICENSE_FILE }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,11 @@ jobs:
if: ${{ inputs.upload_artifacts }}
shell: bash
run: |
echo "test=test-logs-${{ env.VERSION }}" >> $GITHUB_OUTPUT
echo "options=shot-optsfile-${{ env.VERSION }}" >> $GITHUB_OUTPUT
echo "binary=shot-binary-${{ env.VERSION }}" >> $GITHUB_OUTPUT
echo "package=shot-package-${{ env.VERSION }}" >> $GITHUB_OUTPUT
echo "library=shot-libraries-${{ env.VERSION }}" >> $GITHUB_OUTPUT
echo "test=test-logs-${{ env.VERSION }}${{ env.ARTIFACT_SUFFIX }}" >> $GITHUB_OUTPUT
echo "options=shot-optsfile-${{ env.VERSION }}${{ env.ARTIFACT_SUFFIX }}" >> $GITHUB_OUTPUT
echo "binary=shot-binary-${{ env.VERSION }}${{ env.ARTIFACT_SUFFIX }}" >> $GITHUB_OUTPUT
echo "package=shot-package-${{ env.VERSION }}${{ env.ARTIFACT_SUFFIX }}" >> $GITHUB_OUTPUT
echo "library=shot-libraries-${{ env.VERSION }}${{ env.ARTIFACT_SUFFIX }}" >> $GITHUB_OUTPUT
- name: Output test artifacts
if: ${{ inputs.upload_artifacts }} != true && steps.output-artifacts.outcome != 'success'
Expand Down

0 comments on commit a616ee5

Please sign in to comment.