diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index 6dfdd60cd36de2e768bce393e87a4514fa3dee78..22543d94b24a5adb7360d4034455c985ed4bcf4e 100644
--- a/.github/workflows/cmake.yml
+++ b/.github/workflows/cmake.yml
@@ -37,19 +37,15 @@ jobs:
         auto-activate-base: true
         auto-update-conda: true
         use-only-tar-bz2: true
-    - shell: bash -l {0}
+    - name: Build
+      shell: bash -l {0}
+      working-directory: ${{runner.workspace}}
       run: |
         conda info
         conda list
+        cd $GITHUB_WORKSPACE/conda
+        conda build . -c main -c conda-forge
     - shell: pwsh
       run: |
         conda info
         conda list
-
-    - name: Build
-      working-directory: ${{runner.workspace}}
-      shell: bash
-      # Execute the build.  You can specify a specific target with "--target <NAME>"
-      run: |
-        cd $GITHUB_WORKSPACE/conda
-        conda build . -c main -c conda-forge