summary refs log tree commit diff stats
path: root/.github
diff options
context:
space:
mode:
authorJuan Carlos <juancarlospaco@gmail.com>2023-09-25 00:21:09 -0300
committerGitHub <noreply@github.com>2023-09-25 11:21:09 +0800
commit584010196856e4c357996696e932ba0ffbc61f84 (patch)
tree143a90099fdd9939de8c38b8b9a1dc66af8f146b /.github
parent1b0447c208a8ec03c1abf5c511b3949a882a8996 (diff)
downloadNim-584010196856e4c357996696e932ba0ffbc61f84.tar.gz
Update Bisect (#22750)
- Support multiple OS Bisects (Linux, Windows, MacOS).
- Install Valgrind only if needed to speed up non-Valgrind builds.
- Valgrind+MacOS bisect support.
- Show IR of OK repro code samples.
- YAML only, tiny diff.


#### New features

- Bisect bugs that only reproduce on Windows and OSX.


#### See also

- https://github.com/juancarlospaco/nimrun-action/pull/10
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/bisects.yml31
1 files changed, 16 insertions, 15 deletions
diff --git a/.github/workflows/bisects.yml b/.github/workflows/bisects.yml
index 066ebc80b..e73736d29 100644
--- a/.github/workflows/bisects.yml
+++ b/.github/workflows/bisects.yml
@@ -5,21 +5,22 @@ on:
     types: created
 
 jobs:
-  test:
-    runs-on: ubuntu-latest
+  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@v4
+      - uses: actions/checkout@v4
 
-    # nimrun-action requires Nim installed.
-    - uses: jiro4989/setup-nim-action@v1
-      with:
-        nim-version: 'devel'
+      - uses: jiro4989/setup-nim-action@v1
+        with:
+          nim-version: 'devel'
 
-    - name: Install Dependencies
-      run: |
-        sudo apt-get -yq update
-        sudo apt-get install --no-install-recommends -yq valgrind
-
-    - uses: juancarlospaco/nimrun-action@nim
-      with:
-        github-token: ${{ secrets.GITHUB_TOKEN }}
+      - uses: juancarlospaco/nimrun-action@nim
+        with:
+          github-token: ${{ secrets.GITHUB_TOKEN }}