fix (Laerdal.McuMgr.Tests.csproj): switch back to net8.0 because as i… #33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# https://docs.github.com/en/actions/migrating-to-github-actions/automated-migrations/migrating-from-azure-devops-with-github-actions-importer#environment-variable-mapping | |
# | |
name: Builder | |
env: | |
Build_Repository_Folderpath: ${{ github.workspace }} | |
on: | |
push: | |
branches: | |
- "**" # only trigger on branches not on tags | |
pull_request: | |
branches: | |
- "main" | |
- "develop" | |
jobs: | |
build: | |
runs-on: macos-14 | |
# variable substitution is not supported in github at all so we cant do stuff like this | |
# | |
# env: | |
# Build_Artifacts_Folderpath: $Build_Repository_Folderpath/Artifacts | |
steps: | |
- name: '🔽 Checkout' | |
uses: 'actions/checkout@v3' | |
with: | |
fetch-depth: 1 | |
- name: '🛠 Setup Build Environment' | |
run: ' echo "$Build_Repository_Folderpath" && chmod +x "$Build_Repository_Folderpath/Laerdal.SetupBuildEnvironment.sh" && "$Build_Repository_Folderpath/Laerdal.SetupBuildEnvironment.sh" ' | |
shell: bash | |
- name: 'Add Artifacts folder as a local NuGet Source' | |
run: ' dotnet nuget add source "$Build_Repository_Folderpath/Artifacts" --name "LocalArtifacts" ' | |
shell: bash | |
# todo experiment with building maccatalyst now that we have macos14 at our disposal | |
- name: '🏗 📦 Build, Pack & Announce New Release (if appropriate)' | |
shell: bash | |
env: | |
Source_Branch_Fullpath: ${{ github.ref }} | |
Github_Repository_Path: ${{ github.repository }} | |
Components_Team_Github_Access_Token: ${{ secrets.components_team_github_access_token }} | |
run: | | |
cd "$Build_Repository_Folderpath" \ | |
&& \ | |
dotnet \ | |
msbuild \ | |
"Laerdal.McuMgr.Builder.targets" \ | |
-m:1 \ | |
-p:ShouldSkipMacCatalyst="true" \ | |
\ | |
-p:PackageOutputPath="$Build_Repository_Folderpath/Artifacts" \ | |
-p:Laerdal_Gradle_Path="/opt/homebrew/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="$Build_Repository_Folderpath/TestResults" | |
- name: '📡 Publish Test Results' # https://github.com/marketplace/actions/publish-test-results | |
uses: EnricoMi/publish-unit-test-result-action/macos@v2 | |
if: always() | |
with: | |
files: | | |
$Build_Repository_Folderpath/TestResults/**/TEST-*.xml | |
$Build_Repository_Folderpath/TestResults/**/TEST-*.trx | |
- name: '⬆️ Upload Artifacts' # to share with other workflows https://stackoverflow.com/a/77663335/863651 | |
uses: actions/upload-artifact@v3 | |
with: | |
name: 'NuGet Packages' | |
path: '$(Build.ArtifactStagingDirectory)/Artifacts/**/*.nupkg' |