Skip to content

Commit

Permalink
feat(ci): Updated the benchmarker + added secrets. Also temporarly di…
Browse files Browse the repository at this point in the history
…sable the licensed builds.
  • Loading branch information
maxemiliang committed Mar 17, 2024
1 parent cf168ef commit 3fd73b1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 17 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/benchmarker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,17 @@ jobs:
INPUT_BENCHMARK_TYPE: ${{ inputs.benchmark_type }}
INPUT_BENCHMARKS: ${{ inputs.benchmarks }}
INPUT_SHOT_EXECUTABLE: ${{ inputs.shot_executable }}
OS_PROJECT_ID: ${{ secrets.OS_PROJECT_ID }}
OS_PROJECT_NAME: ${{ secrets.OS_PROJECT_NAME }}
OS_USER_DOMAIN_NAME: "Default"
OS_PROJECT_DOMAIN_ID: "default"
OS_USERNAME: ${{ secrets.OS_USERNAME }}
OS_PASSWORD: ${{ secrets.OS_PASSWORD }}
OS_REGION_NAME: "regionOne"
OS_INTERFACE: "public"
OS_IDENTITY_API_VERSION: "3"
working-directory: ${{ github.workspace }}/shot-benchmarker
run: python main.py
run: python main.py -c -s

- name: Upload benchmarks
uses: actions/upload-artifact@v3
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ jobs:
retention: 30
upload_artifacts: true

# # Then, we build and test using all licenses included proprietary ones
build-proprietary:
name: Build & Test (Proprietary licenses)
needs: [ build-test ]
uses: ./.github/workflows/build-workflow.yml
with:
job_count: 4
build_type: Release
retention: 30
upload_artifacts: false
enable_gurobi: true
enable_gams: true
artifact_suffix: '-proprietary'
secrets:
gurobi_license: ${{ secrets.GUROBI_LICENSE_FILE }}
gams_license: ${{ secrets.GAMS_LICENSE_FILE }}
# Then, we build and test using all licenses included proprietary ones
# build-proprietary:
# name: Build & Test (Proprietary licenses)
# needs: [ build-test ]
# uses: ./.github/workflows/build-workflow.yml
# with:
# job_count: 4
# build_type: Release
# retention: 30
# upload_artifacts: false
# enable_gurobi: true
# enable_gams: true
# artifact_suffix: '-proprietary'
# secrets:
# gurobi_license: ${{ secrets.GUROBI_LICENSE_FILE }}
# gams_license: ${{ secrets.GAMS_LICENSE_FILE }}

# Finally, we run some simple benchmarks
benchmark:
Expand Down

0 comments on commit 3fd73b1

Please sign in to comment.