diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 3d37453..7c60ebe 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -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
@@ -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 }}
diff --git a/src/CredentialManager/CredentialManager.csproj b/src/CredentialManager/CredentialManager.csproj
index c01bdb7..55a8ca6 100644
--- a/src/CredentialManager/CredentialManager.csproj
+++ b/src/CredentialManager/CredentialManager.csproj
@@ -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)'))">