diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b8f9f9b15..dcdbd4596 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,20 @@ jobs: runs-on: ${{ matrix.os }} steps: + - name: Windows Environment + if: runner.os == 'Windows' + run: | + echo "Platform=x64" >> $GITHUB_ENV + echo "Configuration=Release" >> $GITHUB_ENV + echo "IceHome=${{github.workspace}}\ice" >> $GITHUB_ENV + echo "ICE_HOME=${{github.workspace}}\ice" >> $GITHUB_ENV + + - name: Linux/MacOS Environment + if: runner.os != 'Windows' + run: | + echo "ICE_HOME=${{github.workspace}}/ice" >> $GITHUB_ENV + echo "IceHome=${{github.workspace}}/ice" >> $GITHUB_ENV + - name: Checkout Ice uses: actions/checkout@v4 with: @@ -50,20 +64,6 @@ jobs: working_directory: ice build_flags: ${{ runner.os == 'Windows' && '/t:BuildDist' || 'srcs' }} - - name: Windows Environment - if: runner.os == 'Windows' - run: | - echo "Platform=x64" >> $GITHUB_ENV - echo "Configuration=Release" >> $GITHUB_ENV - echo "IceHome=${{github.workspace}}\ice" >> $GITHUB_ENV - echo "ICE_HOME=${{github.workspace}}\ice" >> $GITHUB_ENV - - - name: Linux/MacOS Environment - if: runner.os != 'Windows' - run: | - echo "ICE_HOME=${{github.workspace}}/ice" >> $GITHUB_ENV - echo "IceHome=${{github.workspace}}/ice" >> $GITHUB_ENV - - name: Checkout repository uses: actions/checkout@v4 with: