Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Commit

Permalink
add github action to build windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alehandru committed Sep 6, 2023
1 parent 2c8185d commit 85e23f4
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Build gRPC for Windows

on:
push:
branches: ['nh-57056-cpp17']

# Inputs for reusable workflow

workflow_call:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: string

# Inputs for manually triggered workflow

workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'

jobs:
build:
strategy:
matrix:
arch: ['32', '64']
configuration: ['Release', 'Debug']
fail-fast: false

runs-on: windows-2022

steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout ${{ github.ref }}
uses: actions/checkout@v3

- name: Checkout gRPC repository
uses: actions/checkout@v3
with:
path: grpc

- name: Add msbuild to PATH
uses: microsoft/[email protected]

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Build gRPC ${{ matrix.arch }} ( ${{ matrix.configuration }} )
shell: cmd
run: |
${{ github.workspace }}/grpc/build_windows.bat ${{ matrix.configuration }} ${{ matrix.arch }}
working-directory: ${{ github.workspace }}
env:
WORKSPACE: ${{ github.workspace }}
MSBUILD_COMMAND: msbuild.exe


0 comments on commit 85e23f4

Please sign in to comment.