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

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
alehandru committed Sep 11, 2023
1 parent d6dabed commit 7a551a2
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,37 +93,47 @@ jobs:
with:
name: build_${{ matrix.arch }}_${{ matrix.configuration }}
path: |
${{ github.workspace }}\build_windows_${{ matrix.arch }}\
${{ github.workspace }}\build_windows_${{ matrix.arch }}\**\*.lib
archive:
needs: build
runs-on: windows-latest

steps:
- name: Create directories
shell: pwsh
run: |
mkdir -p ${{ github.workspace }}/artifacts/
mkdir -p ${{ github.workspace }}/artifacts/build_windows_32
mkdir -p ${{ github.workspace }}/artifacts/build_windows_64
- name: Download artifacts for gRPC 32 (Release)
uses: actions/download-artifact@v3
with:
name: build_32_Release
path: ${{ github.workspace }}\artifacts
path: ${{ github.workspace }}\artifacts\build_windows_32
if-no-files-found: error

- name: Download artifacts for gRPC 64 (Release)
- name: Download artifacts for gRPC 32 (Debug)
uses: actions/download-artifact@v3
with:
name: build_64_Release
path: ${{ github.workspace }}\artifacts
name: build_32_Debug
path: ${{ github.workspace }}\artifacts\build_windows_32
if-no-files-found: error

- name: Download artifacts for gRPC 32 (Debug)
- name: Download artifacts for gRPC 64 (Release)
uses: actions/download-artifact@v3
with:
name: build_32_Debug
path: ${{ github.workspace }}\artifacts
name: build_64_Release
path: ${{ github.workspace }}\artifacts\build_windows_64
if-no-files-found: error

- name: Download artifacts for gRPC 64 (Debug)
uses: actions/download-artifact@v3
with:
name: build_64_Debug
path: ${{ github.workspace }}\artifacts
path: ${{ github.workspace }}\artifacts\build_windows_64
if-no-files-found: error

- name: List artifacts
shell: pwsh
Expand All @@ -144,9 +154,11 @@ jobs:
shell: pwsh
working-directory: ${{ github.workspace }}
run: |
ls -R ${{ github.workspace }}/artifacts
$source = "${{ github.workspace }}\artifacts"
$destination = "${{ github.workspace }}"
ls -R $source
$version = "${{ github.sha }}".Substring(0,7)
.\create-grpc-archive.ps1 -Source "${{ github.workspace }}artifacts" -Destination "${{ github.workspace }}" -Version $version
.\create-grpc-archive.ps1 -Source $source -Destination $destination -Version $version
- name: Upload artifacts for gRPC
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 7a551a2

Please sign in to comment.