Skip to content

Commit

Permalink
Make Linux and Mac Binaries Executable in pipeline (#356)
Browse files Browse the repository at this point in the history
* Make Linux and Mac Binaries Executable in pipeline

* Update dotnet-publish-linux-mac-job.yml

* Update dotnet-publish-linux-mac-job.yml

* Temporarily comment out portions not being debugged.

* Add Inline

* Revert "Temporarily comment out portions not being debugged."

This reverts commit c3d7c31.

* Bump Dependencies

* Revert "Bump Dependencies"

This reverts commit cf19204.

* Fix VS Extension dependencies
  • Loading branch information
gfs authored Jan 19, 2022
1 parent afc9d87 commit 456d78f
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.7" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.7" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.8" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.8" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Glob" Version="1.1.8" />
<PackageReference Include="Microsoft.CST.RecursiveExtractor" Version="1.1.4" />
<PackageReference Include="Glob" Version="1.1.9" />
<PackageReference Include="Microsoft.CST.RecursiveExtractor" Version="1.1.6" />
<PackageReference Include="Microsoft.Extensions.CommandLineUtils" Version="1.1.1" />
<PackageReference Include="Sarif.Sdk" Version="2.4.11" />
<PackageReference Include="Sarif.Sdk" Version="2.4.12" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.7" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.7" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.8" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.8" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers">
<Version>3.3.2</Version>
<Version>3.3.3</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down Expand Up @@ -258,16 +258,16 @@
<Version>5.0.0</Version>
</PackageReference>
<PackageReference Include="Nerdbank.Streams">
<Version>2.8.46</Version>
<Version>2.8.54</Version>
</PackageReference>
<PackageReference Include="StreamJsonRpc">
<Version>2.8.28</Version>
<Version>2.9.85</Version>
</PackageReference>
<PackageReference Include="System.Collections.Immutable">
<Version>5.0.0</Version>
<Version>6.0.0</Version>
</PackageReference>
<PackageReference Include="System.IO.Pipelines">
<Version>5.0.1</Version>
<Version>6.0.1</Version>
</PackageReference>
<PackageReference Include="System.Net.Http">
<Version>4.3.4</Version>
Expand All @@ -282,7 +282,7 @@
<Version>4.3.1</Version>
</PackageReference>
<PackageReference Include="System.Runtime.CompilerServices.Unsafe">
<Version>5.0.0</Version>
<Version>6.0.0</Version>
</PackageReference>
<PackageReference Include="System.Security.Cryptography.Algorithms">
<Version>4.3.1</Version>
Expand All @@ -291,10 +291,10 @@
<Version>4.3.2</Version>
</PackageReference>
<PackageReference Include="System.Text.Json">
<Version>5.0.0</Version>
<Version>6.0.1</Version>
</PackageReference>
<PackageReference Include="System.Threading.Tasks.Dataflow">
<Version>5.0.0</Version>
<Version>6.0.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions DevSkim-DotNet/Microsoft.DevSkim/Microsoft.DevSkim.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CST.OAT" Version="1.1.13" />
<PackageReference Include="System.Text.Json" Version="5.0.0" />
<PackageReference Include="Microsoft.CST.OAT" Version="1.1.16" />
<PackageReference Include="System.Text.Json" Version="6.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
12 changes: 12 additions & 0 deletions Pipelines/templates/dotnet-publish-linux-mac-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,25 @@ jobs:
arguments: '${{ parameters.projectPath }} -c ${{ parameters.buildConfiguration }} -o bin/linux/${{ parameters.projectName }}_linux_$(ReleaseVersion) -r linux-x64 -f ${{ parameters.publishFramework }}'
publishWebProjects: false
zipAfterPublish: false
- task: Bash@3
displayName: Make Linux Executable
inputs:
targetType: 'inline'
script: chmod +x ${{ parameters.projectName }}_linux_$(ReleaseVersion)/devskim
workingDirectory: 'bin/linux/'
- task: DotNetCoreCLI@2
displayName: Publish MacOS x64
inputs:
command: 'publish'
arguments: '${{ parameters.projectPath }} -c ${{ parameters.buildConfiguration }} -o bin/macos/${{ parameters.projectName }}_macos_$(ReleaseVersion) -f ${{ parameters.publishFramework }} -r osx-x64'
publishWebProjects: false
zipAfterPublish: false
- task: Bash@3
displayName: Make MacOS Executable
inputs:
targetType: 'inline'
script: chmod +x ${{ parameters.projectName }}_macos_$(ReleaseVersion)/devskim
workingDirectory: 'bin/macos/'
- task: ArchiveFiles@2
displayName: Archive Builds
inputs:
Expand Down

0 comments on commit 456d78f

Please sign in to comment.