mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
- Nim requires `SSL_library_init`, OpenSSL 3.x removed `SSL_library_init`, Windows defaults to OpenSSL 3.x, then install OpenSSL 1.x on Windows. - Keep `jiro4989/setup-nim-action` at `v1`, because `v2` uses a YAML "hardcoded" matrix of Nim versions, but this Bisect "dynamically" finds the Nim version with a bug, therefore we cant hardcode Nim versions in the YAML, the Bisect programmatically installs required Nim versions as it goes bisecting commit-by-commit. - Update `actions/checkout` from `v4` to `v5`. - Add support for Nim `2.2.4`. @ringabout
39 lines
1.6 KiB
YAML
39 lines
1.6 KiB
YAML
# See https://github.com/juancarlospaco/nimrun-action/issues/3#issuecomment-1607344901
|
|
name: issue comments bisects
|
|
on:
|
|
issue_comment:
|
|
types: created
|
|
|
|
jobs:
|
|
bisects:
|
|
if: |
|
|
github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '!nim ') && github.event.issue.pull_request == null && github.event.comment.author_association != 'NONE'
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform: [ubuntu-latest, windows-latest, macos-latest]
|
|
name: ${{ matrix.platform }}-bisects
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Install OpenSSL (Windows)
|
|
if: |
|
|
runner.os == 'Windows'
|
|
run: choco install openssl.light --version=1.1.1.0 # OpenSSL 3.x removed SSL_library_init
|
|
shell: 'powershell'
|
|
|
|
# v2 wont work here, because uses "hardcoded" nim versions, action "dynamically" finds version with bug.
|
|
- uses: jiro4989/setup-nim-action@v1
|
|
with:
|
|
nim-version: 'devel'
|
|
|
|
- uses: juancarlospaco/nimrun-action@nim
|
|
if: |
|
|
runner.os == 'Linux' && contains(github.event.comment.body, '-d:linux' ) ||
|
|
runner.os == 'Windows' && contains(github.event.comment.body, '-d:windows') ||
|
|
runner.os == 'macOS' && contains(github.event.comment.body, '-d:osx' ) ||
|
|
runner.os == 'Linux' && !contains(github.event.comment.body, '-d:linux') && !contains(github.event.comment.body, '-d:windows') && !contains(github.event.comment.body, '-d:osx')
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|