# Security -> Actions -> Variables) to restrict the tests that are run
# The supported variables are:
#
-# RUN_ONLY_TARGET_CONFIG: Run only the single matching target and config,
-# separated by spaces, eg "ubuntu-latest default". All other tests will
-# fail immediately.
-#
-# LTESTS: Override the set of tests run.
+# RUN_ONLY_PLATFORM: run only tests on specified platform.
name: CI VM
on:
jobs:
dragonflybsd:
name: "dragonflybsd-${{ matrix.target }}"
- if: github.repository != 'openssh/openssh-portable-selfhosted'
+ if: github.repository != 'openssh/openssh-portable-selfhosted' && (vars.RUN_ONLY_PLATFORM == '' || vars.RUN_ONLY_PLATFORM == 'dragonflybsd')
strategy:
fail-fast: false
matrix:
freebsd:
name: "freebsd-${{ matrix.target }}"
- if: github.repository != 'openssh/openssh-portable-selfhosted'
+ if: github.repository != 'openssh/openssh-portable-selfhosted' && (vars.RUN_ONLY_PLATFORM == '' || vars.RUN_ONLY_PLATFORM == 'freebsd')
strategy:
fail-fast: false
matrix:
netbsd:
name: "netbsd-${{ matrix.target }}"
- if: github.repository != 'openssh/openssh-portable-selfhosted'
+ if: github.repository != 'openssh/openssh-portable-selfhosted' && (vars.RUN_ONLY_PLATFORM == '' || vars.RUN_ONLY_PLATFORM == 'netbsd')
strategy:
fail-fast: false
matrix:
omnios:
name: "omnios-${{ matrix.target }}"
- if: github.repository != 'openssh/openssh-portable-selfhosted'
+ if: github.repository != 'openssh/openssh-portable-selfhosted' && (vars.RUN_ONLY_PLATFORM == '' || vars.RUN_ONLY_PLATFORM == 'omnios')
strategy:
fail-fast: false
matrix:
openbsd:
name: "openbsd-${{ matrix.target }}"
- if: github.repository != 'openssh/openssh-portable-selfhosted'
+ if: github.repository != 'openssh/openssh-portable-selfhosted' && (vars.RUN_ONLY_PLATFORM == '' || vars.RUN_ONLY_PLATFORM == 'openbsd')
strategy:
fail-fast: false
matrix:
# plaform (the latest snapshot) and most recent upstream code (or at least
# the most recent code in the github mirror) instead of OpenSSH Portable.
name: "openbsd-current-upstream"
- if: github.repository != 'openssh/openssh-portable-selfhosted'
+ if: github.repository != 'openssh/openssh-portable-selfhosted' && (vars.RUN_ONLY_PLATFORM == '' || vars.RUN_ONLY_PLATFORM == 'openbsd')
strategy:
fail-fast: false
runs-on: ubuntu-latest
solaris:
name: "solaris-${{ matrix.target }}"
- if: github.repository != 'openssh/openssh-portable-selfhosted'
+ if: github.repository != 'openssh/openssh-portable-selfhosted' && (vars.RUN_ONLY_PLATFORM == '' || vars.RUN_ONLY_PLATFORM == 'solaris')
strategy:
fail-fast: false
matrix: