bisects.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. # See https://github.com/juancarlospaco/nimrun-action/issues/3#issuecomment-1607344901
  2. name: issue comments bisects
  3. on:
  4. issue_comment:
  5. types: created
  6. jobs:
  7. bisects:
  8. if: |
  9. github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '!nim ') && github.event.issue.pull_request == null && github.event.comment.author_association != 'NONE'
  10. strategy:
  11. fail-fast: false
  12. matrix:
  13. platform: [ubuntu-latest, windows-latest, macos-latest]
  14. name: ${{ matrix.platform }}-bisects
  15. runs-on: ${{ matrix.platform }}
  16. steps:
  17. - uses: actions/checkout@v4
  18. - uses: jiro4989/setup-nim-action@v1
  19. with:
  20. nim-version: 'devel'
  21. - uses: juancarlospaco/nimrun-action@nim
  22. if: |
  23. runner.os == 'Linux' && contains(github.event.comment.body, '-d:linux' ) ||
  24. runner.os == 'Windows' && contains(github.event.comment.body, '-d:windows') ||
  25. runner.os == 'macOS' && contains(github.event.comment.body, '-d:osx' ) ||
  26. runner.os == 'Linux' && !contains(github.event.comment.body, '-d:linux') && !contains(github.event.comment.body, '-d:windows') && !contains(github.event.comment.body, '-d:osx')
  27. with:
  28. github-token: ${{ secrets.GITHUB_TOKEN }}