Skip to content

Commit

Permalink
refactor: benchmarker, test with artifact.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxemiliang committed Nov 9, 2023
1 parent af42c78 commit 35789d6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/benchmarker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ on:
default: false
required: false
type: boolean

shot_artifact:
description: 'The SHOT artifact to use'
default: ""
required: false
type: string
secrets:
gurobi_license:
description: 'Gurobi license file secret'
Expand All @@ -60,6 +64,13 @@ jobs:
runs-on: [ self-hosted, linux, cmake ]

steps:
- name: Fetch SHOT artifact
if: ${{ inputs.shot_artifact != '' }}
uses: actions/download-artifact@v3
with:
name: ${{ inputs.shot_artifact }}
path: ${{ github.workspace }}/build

- shell: bash
run: git -C shot-benchmarker pull || git clone https://github.com/maxemiliang/shot-benchmarker.git

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ jobs:
with:
benchmark_folder: "MINLP-convex-small"
benchmark_type: "nl"
enable_gurobi: true
enable_gams: true
enable_gurobi: false
enable_gams: false
shot_artifact: ${{ needs.build-test.outputs.binary-artifact }}
secrets:
gurobi_license: ${{ secrets.GUROBI_LICENSE_FILE }}
gams_license: ${{ secrets.GAMS_LICENSE_FILE }}
Expand Down

0 comments on commit 35789d6

Please sign in to comment.