Skip to content

Commit

Permalink
fix: named artifacts then combine
Browse files Browse the repository at this point in the history
  • Loading branch information
mikechu-optimizely committed Nov 7, 2024
1 parent 960faad commit 3740f26
Showing 1 changed file with 35 additions and 6 deletions.
41 changes: 35 additions & 6 deletions .github/workflows/csharp_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
semanticVersion: ${{ steps.set_version.outputs.semantic_version }}

buildFrameworkVersions:
name: Build Framework versions
name: Build .NET Framework versions
needs: [ variables ]
runs-on: windows-2019 # required version for Framework 4.0
steps:
Expand All @@ -53,12 +53,12 @@ jobs:
- name: Upload Framework artifacts
uses: actions/upload-artifact@v4
with:
name: unsigned-dlls
name: unsigned-dlls-framework
if-no-files-found: error
path: ./**/bin/Release/**/Optimizely*.dll

buildStandard16:
name: Build Standard 1.6 version
name: Build .NET 1.6 version
needs: [ variables ]
runs-on: windows-latest
steps:
Expand All @@ -75,12 +75,12 @@ jobs:
- name: Upload Standard 1.6 artifact
uses: actions/upload-artifact@v4
with:
name: unsigned-dlls
name: unsigned-dlls-standard16
if-no-files-found: error
path: ./**/bin/Release/**/Optimizely*.dll

buildStandard20:
name: Build Standard 2.0 version
name: Build .NET 2.0 version
needs: [ variables ]
runs-on: windows-latest
steps:
Expand All @@ -97,9 +97,38 @@ jobs:
- name: Build and strongly name assemblies
uses: actions/upload-artifact@v4
with:
name: unsigned-dlls
name: unsigned-dlls-standard20
if-no-files-found: error
path: ./**/bin/Release/**/Optimizely*.dll

combineArtifacts:
name: Combine artifacts
needs: [ variables, buildFrameworkVersions, buildStandard16, buildStandard20 ]
runs-on: ubuntu-latest
steps:
- name: Download Framework artifacts
uses: actions/download-artifact@v4
with:
name: unsigned-dlls-framework
- name: Download Standard 1.6 artifacts
uses: actions/download-artifact@v4
with:
name: unsigned-dlls-standard16
- name: Download Standard 2.0 artifacts
uses: actions/download-artifact@v4
with:
name: unsigned-dlls-standard20
- name: Combine artifacts
run: |
mkdir -p ./unsigned-dlls
mv ./unsigned-dlls-framework/**/Optimizely*.dll ./unsigned-dlls/
mv ./unsigned-dlls-standard16/**/Optimizely*.dll ./unsigned-dlls/
mv ./unsigned-dlls-standard20/**/Optimizely*.dll ./unsigned-dlls/
- name: Upload combined artifacts
uses: actions/upload-artifact@v4
with:
name: unsigned-dlls
if-no-files-found: error

sign:
name: Send DLLs for signing
Expand Down

0 comments on commit 3740f26

Please sign in to comment.