1
0

benchmarks.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. name: Benchmarks
  2. on:
  3. workflow_dispatch:
  4. schedule:
  5. - cron: '0 8 * * *'
  6. concurrency: benchmarks
  7. jobs:
  8. benchmark:
  9. name: Run Benchmarks
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v3.6.0
  13. with:
  14. submodules: 'recursive'
  15. - name: Get Engine version
  16. run: |
  17. cd RobustToolbox
  18. git fetch --depth=1
  19. echo "::set-output name=out::$(git rev-parse HEAD)"
  20. id: engine_version
  21. - name: Run script on centcomm
  22. uses: appleboy/ssh-action@master
  23. with:
  24. host: centcomm.spacestation14.io
  25. username: robust-benchmark-runner
  26. key: ${{ secrets.CENTCOMM_ROBUST_BENCHMARK_RUNNER_KEY }}
  27. command_timeout: 100000m
  28. script: |
  29. mkdir benchmark_run_content_${{ github.sha }}
  30. cd benchmark_run_content_${{ github.sha }}
  31. git clone https://github.com/space-wizards/space-station-14.git repo_dir --recursive
  32. cd repo_dir
  33. git checkout ${{ github.sha }}
  34. cd Content.Benchmarks
  35. dotnet restore
  36. export ROBUST_BENCHMARKS_ENABLE_SQL=1
  37. export ROBUST_BENCHMARKS_SQL_ADDRESS="${{ secrets.BENCHMARKS_WRITE_ADDRESS }}"
  38. export ROBUST_BENCHMARKS_SQL_PORT="${{ secrets.BENCHMARKS_WRITE_PORT }}"
  39. export ROBUST_BENCHMARKS_SQL_USER="${{ secrets.BENCHMARKS_WRITE_USER }}"
  40. export ROBUST_BENCHMARKS_SQL_PASSWORD="${{ secrets.BENCHMARKS_WRITE_PASSWORD }}"
  41. export ROBUST_BENCHMARKS_SQL_DATABASE="content_benchmarks"
  42. export GITHUB_SHA="${{ github.sha }}"
  43. dotnet run --filter '*' --configuration Release
  44. cd ../../..
  45. rm -rf benchmark_run_content_${{ github.sha }}