Skip to content

Commit

Permalink
chore: Added back the old build steps, to test the whole workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
maxemiliang committed Oct 19, 2023
1 parent 32e8e36 commit f9d844b
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,56 +8,56 @@ concurrency: push-build

jobs:
# First, we build and test using the default build options and only open source external libraries
# build-test:
# name: Build & Test
# uses: ./.github/workflows/build-workflow.yml
# with:
# job_count: 4
# build_type: Release
# retention: 30
# upload_artifacts: true
build-test:
name: Build & Test
uses: ./.github/workflows/build-workflow.yml
with:
job_count: 4
build_type: Release
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 }}
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"
benchmark_type: "nl"

# 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-test:
name: Publish test results
needs: [ build-test, build-proprietary ]
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 f9d844b

Please sign in to comment.