From 3c0a4fddacf2048e12fe79b10aaae5ea58da3ccb Mon Sep 17 00:00:00 2001 From: nkoenen Date: Mon, 25 Nov 2024 14:59:43 +0100 Subject: [PATCH] bugfix in workflow --- .github/workflows/R-CMD-check.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index d02f68a..d30a86e 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -9,6 +9,15 @@ on: branches: [main, master] pull_request: branches: [main, master] + # Allow manually triggering the workflow via GitHub website, gh CLI tool etc. + # Also adds parameter to enable tmate (inetractive tmux session for debugging) + workflow_dispatch: + inputs: + debug_enabled: + type: boolean + description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' + required: false + default: false name: R-CMD-check @@ -75,7 +84,7 @@ jobs: # See https://github.com/mlverse/torch/issues/1213#issuecomment-2495533992 - name: Build libtorch without openMP (only for macOS) - if: ${{ matrix.config.os == 'MacOS' }} + if: ${{ runner.os == 'macOS' }} run: | options(timeout = 600) kind <- "cpu-intel"