[build] fix (Laerdal.McuMgr.Bindings.Android.NativeBuilder.targets): … #25
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: | |
workflow_call: # reusable workflows other workflows can trigger this | |
workflow_dispatch: # allows to run this workflow manually from the actions tab | |
push: | |
branches: | |
- '**' # '*' matches zero or more characters but does not match the `/` character '**' matches zero or more of any character | |
- '!main' # main will trigger/reuse this workflow by other means via workflow call | |
- '!master' # master will trigger/reuse this workflow by other means via workflow call | |
- '!develop' # develop will trigger/reuse this workflow by other means via workflow call | |
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' | |
shell: 'bash' | |
run: | | |
chmod +x "$build_repository_folderpath/Laerdal.Scripts/Laerdal.SetupBuildEnvironment.sh" \ | |
&& \ | |
"$build_repository_folderpath/Laerdal.Scripts/Laerdal.SetupBuildEnvironment.sh" \ | |
"https://nuget.pkg.github.com/Laerdal/index.json" \ | |
"${{ secrets.scl_github_nuget_feed_username }}" \ | |
"${{ secrets.scl_github_access_token }}" | |
- name: '🏗 📦 Build, Pack & Announce New Release (if appropriate)' | |
shell: bash | |
run: | | |
cd "$build_repository_folderpath/Laerdal.Scripts" \ | |
&& \ | |
dotnet \ | |
msbuild \ | |
"Laerdal.McuMgr.Builder.targets" \ | |
-m:1 \ | |
-p:ShouldSkipMacCatalyst="false" \ | |
\ | |
-p:PackageOutputPath="$build_repository_folderpath/Artifacts" \ | |
-p:Laerdal_Gradle_Path="/opt/homebrew/opt/gradle@7/bin/gradle" \ | |
-p:Laerdal_Source_Branch="${{ github.ref }}" \ | |
-p:Laerdal_Repository_Path="${{ github.repository }}" \ | |
-p:Laerdal_Github_Access_Token="${{ secrets.scl_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: | | |
TestResults/**/TEST-*.xml | |
TestResults/**/TEST-*.trx | |
- name: '⬆️ Upload Artifacts' # to share with other workflows https://stackoverflow.com/a/77663335/863651 | |
uses: actions/upload-artifact@v3 | |
with: | |
name: 'nugets' | |
path: 'Artifacts/**/*.nupkg' |