From adb45d4d0a5fae25d7da08c575c344a77355dcc9 Mon Sep 17 00:00:00 2001 From: synan-mannan Date: Thu, 5 Mar 2026 21:49:11 +0530 Subject: [PATCH] Modified_CI_for_Windows_and_Ubuntu --- .github/workflows/ci.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e6ccd3f..e44b1684 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,14 +2,19 @@ name: Continuous Integration on: pull_request: - branches: ['**'] + branches: ["**"] push: - branches: ['main'] + branches: ["main"] jobs: build: name: Build and Test - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + steps: - uses: actions/checkout@v6 - uses: actions/setup-java@v5 @@ -22,7 +27,8 @@ jobs: scala-cli-version: 1.12.2 - run: scala-cli fmt --check . - run: scala-cli --server=false build.scala - - if: github.event_name != 'pull_request' + + - if: github.event_name != 'pull_request' && matrix.os == 'ubuntu-latest' uses: peaceiris/actions-gh-pages@v4.0.0 with: github_token: ${{ secrets.GITHUB_TOKEN }}