Skip to content

Commit

Permalink
feat: Re enable licensed build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
maxemiliang committed Apr 6, 2024
1 parent b3207a0 commit aa5a597
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmarker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
OS_IDENTITY_API_VERSION: "3"
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
working-directory: ${{ github.workspace }}/shot-benchmarker
run: python main.py -c -s
run: python main.py -c -s --runs 5

- name: Upload benchmarks
uses: actions/upload-artifact@v3
Expand Down
66 changes: 33 additions & 33 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,26 @@ jobs:
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 }}
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:
name: Benchmark
needs: [ build-test ]
needs: [ build-test, build-proprietary ]
uses: ./.github/workflows/benchmarker.yml
with:
benchmark_folder: "MINLP-convex-small"
Expand All @@ -51,21 +51,21 @@ jobs:
OS_USERNAME: ${{ secrets.OS_USERNAME }}
OS_PASSWORD: ${{ secrets.OS_PASSWORD }}

# Publish the test results as an output
# publish-test:
# name: Publish test results
# needs: [ build-test ]
# runs-on: [ self-hosted, docker ]
# steps:
# - uses: actions/download-artifact@v3
# name: Download artifacts
# with:
# path: artifacts
#
# - name: Publish Test Results
# uses: EnricoMi/publish-unit-test-result-action@v2
# if: always()
# with:
# files: |
# artifacts/test-*/*.xml
# Publish the test results as an output
publish-test:
name: Publish test results
needs: [ build-test, build-proprietary, benchmark ]
runs-on: [ self-hosted, docker ]
steps:
- uses: actions/download-artifact@v3
name: Download artifacts
with:
path: artifacts

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
artifacts/test-*/*.xml

0 comments on commit aa5a597

Please sign in to comment.