diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a918679f..61783c74 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -29,12 +29,13 @@ jobs:
           java-version: ${{ matrix.java }}
 
       - name: Build and Test
+        if: ${{ (matrix.os == 'ubuntu-latest') && (matrix.os == 'windows-latest') }}
         run: |
           ./gradlew build
-      
+
       - name: Build and Test
-        if: ${{ matrix.os == 'macos-latest' }} 
-        run: |          
+        if: ${{ matrix.os == 'macos-latest' }}
+        run: |
           ./gradlew build -D"build.snapshot=true"
 
       - name: Publish to Maven Local