diff --git a/.github/workflows/cargo-tests.yml b/.github/workflows/cargo-tests.yml index eca1486..201fa35 100644 --- a/.github/workflows/cargo-tests.yml +++ b/.github/workflows/cargo-tests.yml @@ -14,8 +14,8 @@ on: - "**.adoc" workflow_dispatch: inputs: - test-macos-and-windows: - description: "run macOS and Windows tests" + test-macos: + description: "run tests on macOS" required: true default: false type: boolean @@ -35,14 +35,11 @@ jobs: os: - ubuntu-22.04 - macos-12 - - windows-2022 run-all: - - ${{ inputs.test-macos-and-windows == true || github.ref == 'refs/heads/main' }} - exclude: # exclude macos-12 and windows-2022 when the condition is false + - ${{ inputs.test-macos == true || github.ref == 'refs/heads/main' }} + exclude: # exclude macos-12 when the condition is false - run-all: false os: macos-12 - - run-all: false - os: windows-2022 runs-on: ${{ matrix.os }} steps: