From 456d78fa0231ac95b45284bd2e1fe9239a4ed42b Mon Sep 17 00:00:00 2001
From: Gabe Stocco <98900+gfs@users.noreply.github.com>
Date: Wed, 19 Jan 2022 14:13:01 -0800
Subject: [PATCH] Make Linux and Mac Binaries Executable in pipeline (#356)
* 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 c3d7c312a5bf27477c3f52e8c45fa5d9e1edd2bd.
* Bump Dependencies
* Revert "Bump Dependencies"
This reverts commit cf192045ccd26f8513d4f9831fa87cc51dfa69c5.
* Fix VS Extension dependencies
---
.../Microsoft.DevSkim.CLI.Tests.csproj | 6 +++---
.../Microsoft.DevSkim.CLI.csproj | 6 +++---
.../Microsoft.DevSkim.Tests.csproj | 6 +++---
.../Microsoft.DevSkim.VSExtension.csproj | 16 ++++++++--------
.../Microsoft.DevSkim/Microsoft.DevSkim.csproj | 4 ++--
.../templates/dotnet-publish-linux-mac-job.yml | 12 ++++++++++++
6 files changed, 31 insertions(+), 19 deletions(-)
diff --git a/DevSkim-DotNet/Microsoft.DevSkim.CLI.Tests/Microsoft.DevSkim.CLI.Tests.csproj b/DevSkim-DotNet/Microsoft.DevSkim.CLI.Tests/Microsoft.DevSkim.CLI.Tests.csproj
index 7a921565..c9f035d9 100644
--- a/DevSkim-DotNet/Microsoft.DevSkim.CLI.Tests/Microsoft.DevSkim.CLI.Tests.csproj
+++ b/DevSkim-DotNet/Microsoft.DevSkim.CLI.Tests/Microsoft.DevSkim.CLI.Tests.csproj
@@ -6,9 +6,9 @@
-
-
-
+
+
+
diff --git a/DevSkim-DotNet/Microsoft.DevSkim.CLI/Microsoft.DevSkim.CLI.csproj b/DevSkim-DotNet/Microsoft.DevSkim.CLI/Microsoft.DevSkim.CLI.csproj
index 3c57e45c..1383a8f5 100644
--- a/DevSkim-DotNet/Microsoft.DevSkim.CLI/Microsoft.DevSkim.CLI.csproj
+++ b/DevSkim-DotNet/Microsoft.DevSkim.CLI/Microsoft.DevSkim.CLI.csproj
@@ -27,10 +27,10 @@
-
-
+
+
-
+
diff --git a/DevSkim-DotNet/Microsoft.DevSkim.Tests/Microsoft.DevSkim.Tests.csproj b/DevSkim-DotNet/Microsoft.DevSkim.Tests/Microsoft.DevSkim.Tests.csproj
index 298a0cbb..5236147a 100644
--- a/DevSkim-DotNet/Microsoft.DevSkim.Tests/Microsoft.DevSkim.Tests.csproj
+++ b/DevSkim-DotNet/Microsoft.DevSkim.Tests/Microsoft.DevSkim.Tests.csproj
@@ -17,9 +17,9 @@
-
-
-
+
+
+
diff --git a/DevSkim-DotNet/Microsoft.DevSkim.VSExtension/Microsoft.DevSkim.VSExtension.csproj b/DevSkim-DotNet/Microsoft.DevSkim.VSExtension/Microsoft.DevSkim.VSExtension.csproj
index c976fd3c..6e4c0595 100644
--- a/DevSkim-DotNet/Microsoft.DevSkim.VSExtension/Microsoft.DevSkim.VSExtension.csproj
+++ b/DevSkim-DotNet/Microsoft.DevSkim.VSExtension/Microsoft.DevSkim.VSExtension.csproj
@@ -183,7 +183,7 @@
- 3.3.2
+ 3.3.3
runtime; build; native; contentfiles; analyzers; buildtransitive
all
@@ -258,16 +258,16 @@
5.0.0
- 2.8.46
+ 2.8.54
- 2.8.28
+ 2.9.85
- 5.0.0
+ 6.0.0
- 5.0.1
+ 6.0.1
4.3.4
@@ -282,7 +282,7 @@
4.3.1
- 5.0.0
+ 6.0.0
4.3.1
@@ -291,10 +291,10 @@
4.3.2
- 5.0.0
+ 6.0.1
- 5.0.0
+ 6.0.0
diff --git a/DevSkim-DotNet/Microsoft.DevSkim/Microsoft.DevSkim.csproj b/DevSkim-DotNet/Microsoft.DevSkim/Microsoft.DevSkim.csproj
index 2ad2b93d..ccdc642f 100644
--- a/DevSkim-DotNet/Microsoft.DevSkim/Microsoft.DevSkim.csproj
+++ b/DevSkim-DotNet/Microsoft.DevSkim/Microsoft.DevSkim.csproj
@@ -19,8 +19,8 @@
-
-
+
+
diff --git a/Pipelines/templates/dotnet-publish-linux-mac-job.yml b/Pipelines/templates/dotnet-publish-linux-mac-job.yml
index c133c0e4..a505708d 100644
--- a/Pipelines/templates/dotnet-publish-linux-mac-job.yml
+++ b/Pipelines/templates/dotnet-publish-linux-mac-job.yml
@@ -69,6 +69,12 @@ 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:
@@ -76,6 +82,12 @@ jobs:
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: