Skip to content

Commit

Permalink
Ensure ILRepack is only run on Windows, as well as pack/push
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed May 16, 2024
1 parent 3d58fc6 commit 2598554
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ jobs:
fetch-depth: 0

- name: 🙏 build
env:
CustomAfterMicrosoftCommonTargets: ${{ github.workspace }}/src/NuGetize.targets
run: dotnet build -m:1 -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"

- name: ⚙ GNU grep
Expand All @@ -68,11 +66,9 @@ jobs:
uses: ./.github/workflows/test

- name: 📦 pack
env:
CustomAfterMicrosoftCommonTargets: ${{ github.workspace }}/src/NuGetize.targets
run: dotnet pack -m:1 -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"

# Only push CI package to sleet feed if building on ubuntu (fastest)
# Only push CI package to sleet feed if building on windows (can't run ILRepack on linux/macOS)
- name: 🚀 sleet
env:
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
Expand Down
2 changes: 1 addition & 1 deletion src/CredentialManager/CredentialManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Usage:
Inputs="@(IntermediateAssembly -> '%(FullPath)')"
Outputs="$(IntermediateOutputPath)ilrepack.txt"
Returns="@(MergedAssemblies)"
Condition="Exists(@(IntermediateAssembly -> '%(FullPath)'))">
Condition="$(OS) == 'WINDOWS_NT' And Exists(@(IntermediateAssembly -> '%(FullPath)'))">
<Message Text="Repacking" Importance="high" />
<ItemGroup>
<MergedAssemblies Include="@(ReferencePath)" Condition="'%(Extension)' == '.dll' And $([MSBuild]::ValueOrDefault('%(FileName)', '')) == 'Core'" />
Expand Down

0 comments on commit 2598554

Please sign in to comment.