Skip to content

Merge pull request #93 #4

Merge pull request #93

Merge pull request #93 #4

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
#
# 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_LocalPath: ${{ github.workspace }}
Laerdal_Test_Results_Folderpath: '$Build_Repository_LocalPath/TestResults'
on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]
jobs:
build:
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- name: Setup Build Environment
run: Laerdal.SetupBuildEnvironment.sh
shell: bash
- name: Add Artifacts folder as a local NuGet Source
run: nuget sources add -name "Artifacts" -source "$Build_Artifact_Staging_Directory/Artifacts"
shell: bash
env:
Build_Artifact_Staging_Directory: ${{ runner.temp }}
- name: Build .Net8+ Bindings and McuMgr itself and announce new release in GitHub (if needed)
shell: bash
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"
env:
Source_Branch_Fullpath: ${{ GITHUB_REF }}

Check failure on line 53 in .github/workflows/github-actions.yml

View workflow run for this annotation

GitHub Actions / Builder

Invalid workflow file

The workflow is not valid. .github/workflows/github-actions.yml (Line: 53, Col: 35): Unrecognized named-value: 'GITHUB_REF'. Located at position 1 within expression: GITHUB_REF .github/workflows/github-actions.yml (Line: 54, Col: 35): Unrecognized named-value: 'GITHUB_REPOSITORY'. Located at position 1 within expression: GITHUB_REPOSITORY
Github_Repository_Path: ${{ GITHUB_REPOSITORY }}
Components_Team_Github_Access_Token: ${{ secrets.COMPONENTS_TEAM_GITHUB_ACCESS_TOKEN }}