Skip to content

Commit

Permalink
Merge branch 'dev' into refactor-to-align-with-modifications-in-axsharp
Browse files Browse the repository at this point in the history
  • Loading branch information
PTKu authored Feb 17, 2025
2 parents 9544a42 + 91df051 commit c20f675
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/single_app_run.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: nightly
name: single_app_run

on:
workflow_dispatch:
inputs:
folder:
description: "Select library folder (abstractions, components.abb.robotics, components.abstractions)"
description: "Select library folder"
required: true
default: "template.axolibrary"
type: choice
Expand Down Expand Up @@ -36,25 +36,27 @@ on:
- template.axolibrary
- timers
- utils

jobs:
app-run-manual-with-selected-folder:
runs-on: [self-hosted, Windows, X64, L3, AX, APP]
steps:
- name: Get Branch Name
shell: pwsh
run: |
if ($env:GITHUB_REF -like "refs/pull/*") {
$BRANCH_NAME = "${{ github.event.pull_request.head.ref }}"
} else {
$BRANCH_NAME = $env:GITHUB_REF -replace 'refs/heads/', ''
}
Write-Host "Triggered on branch: $BRANCH_NAME"
"BRANCH_NAME=$BRANCH_NAME" | Out-File -FilePath $env:GITHUB_ENV -Append
if ($env:GITHUB_REF -like "refs/pull/*") {
$BRANCH_NAME = "${{ github.event.pull_request.head.ref }}"
} else {
$BRANCH_NAME = $env:GITHUB_REF -replace 'refs/heads/', ''
}
Write-Host "Triggered on branch: $BRANCH_NAME"
"BRANCH_NAME=$BRANCH_NAME" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Print Inputs
- name: Print and store library folder
shell: pwsh
run: |
$APP_FOLDER=${{ github.event.inputs.folder }}
echo "Selected folder: $APP_FOLDER"
$APP_FOLDER = "${{ inputs.folder }}"
Write-Host "Selected folder: $APP_FOLDER"
"APP_FOLDER=$APP_FOLDER" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Checkout
Expand Down
14 changes: 8 additions & 6 deletions cake/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -371,15 +371,17 @@ public override void Run(BuildContext context)
// Build and start HMI
AppsRunTaskHelpers.BuildAndStartHmi(context, appFile, appName, logFilePath, ref summaryResult);

if (!summaryResult)
{
context.Log.Error($"App run failed for some of the applications.");
context.Log.Error($"Good luck with finding out the reason :-).");
Environment.Exit(1);
}

}
}
}

if (!summaryResult)
{
context.Log.Error($"App run failed for some of the applications.");
context.Log.Error($"Good luck with finding out the reason :-).");
Environment.Exit(1);
}
}
else
{
Expand Down

0 comments on commit c20f675

Please # to comment.