Skip to content

Commit

Permalink
fix (github-actions.yml): attempt to fix the invocation of 'dotnet ms…
Browse files Browse the repository at this point in the history
…build' by cd-ing to the proper directory first
  • Loading branch information
ksidirop-laerdal committed Mar 13, 2024
1 parent 3097974 commit 182afd4
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
shell: bash

- name: 'Add Artifacts folder as a local NuGet Source'
run: 'dotnet nuget add source "$Build_Artifact_Staging_Directory/Artifacts" --name "LocalArtifacts"'
run: ' dotnet nuget add source "$Build_Artifact_Staging_Directory/Artifacts" --name "LocalArtifacts" '
shell: bash
env:
Build_Artifact_Staging_Directory: ${{ runner.temp }}
Expand All @@ -49,16 +49,17 @@ jobs:
Source_Branch_Fullpath: ${{ github.ref }}
Github_Repository_Path: ${{ github.repository }}
Components_Team_Github_Access_Token: ${{ secrets.components_team_github_access_token }}
working-directory: $Build_Repository_Folderpath
run: |
dotnet \
msbuild \
"Laerdal.McuMgr.Builder.targets" \
-m:1 \
-p:ShouldSkipMacCatalyst="true" \
-p:PackageOutputPath="$Build_Artifact_Staging_Directory/Artifacts/" \
-p:Laerdal_Gradle_Path="/usr/local/opt/gradle@7/bin/gradle" \
-p:Laerdal_Source_Branch="$Source_Branch_Fullpath" \
-p:Laerdal_Repository_Path="$Github_Repository_Path" \
-p:Laerdal_Github_Access_Token="$Components_Team_Github_Access_Token" \
-p:Laerdal_Test_Results_Folderpath="$Laerdal_Test_Results_Folderpath"
cd "$Build_Repository_Folderpath" \
&& \
dotnet \
msbuild \
"Laerdal.McuMgr.Builder.targets" \
-m:1 \
-p:ShouldSkipMacCatalyst="true" \
-p:PackageOutputPath="$Build_Artifact_Staging_Directory/Artifacts/" \
-p:Laerdal_Gradle_Path="/usr/local/opt/gradle@7/bin/gradle" \
-p:Laerdal_Source_Branch="$Source_Branch_Fullpath" \
-p:Laerdal_Repository_Path="$Github_Repository_Path" \
-p:Laerdal_Github_Access_Token="$Components_Team_Github_Access_Token" \
-p:Laerdal_Test_Results_Folderpath="$Laerdal_Test_Results_Folderpath"

0 comments on commit 182afd4

Please sign in to comment.