From 5c568e507b691930c1fb0c85f0973c228c6d8442 Mon Sep 17 00:00:00 2001 From: alehandru Date: Wed, 6 Sep 2023 15:43:43 -0700 Subject: [PATCH] build solution --- .github/workflows/build-windows.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index a9e06ccfd6d9d..07367414e3692 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -39,6 +39,18 @@ jobs: git config --global core.autocrlf false git config --global core.eol lf + - name: 32 bit - set environment variables + if: ${{ matrix.arch == '32' }} + shell: powershell + run: | + echo "PLATFORM=win32" >> $env:GITHUB_ENV + + - name: 64 bit - set environment variables + if: ${{ matrix.arch == '64' }} + shell: powershell + run: | + echo "PLATFORM=x64" >> $env:GITHUB_ENV + - name: Checkout ${{ github.ref }} uses: actions/checkout@v3 @@ -57,10 +69,12 @@ jobs: aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: ${{ secrets.AWS_REGION }} - - name: Build gRPC ${{ matrix.arch }} ( ${{ matrix.configuration }} ) + - name: Build gRPC ${{ matrix.arch }} bit ( ${{ matrix.configuration }} ) shell: cmd run: | - ${{ github.workspace }}/grpc/build_windows.bat ${{ matrix.configuration }} ${{ matrix.arch }} + cd ${{ github.workspace }}/grpc/build_windows_${{ matrix.arch}} + msbuild.exe -maxcpucount /t:Clean,Build /m /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ env.PLATFORM }} /fl /flp:logfile=build-${{ matrix.arch }}.${{ matrix.configuration }}.log;verbosity=diagnostic grpc.sln + working-directory: ${{ github.workspace }} env: WORKSPACE: ${{ github.workspace }}