Skip to content

Wait for possible multiple state updates when verifying robot type #85

Wait for possible multiple state updates when verifying robot type

Wait for possible multiple state updates when verifying robot type #85

Workflow file for this run

name: CI
on:
push:
branches:
# Only run on branch push, not tag push
- '**'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Setup msbuild
uses: microsoft/setup-msbuild@v1
- name: Setup nuget
uses: nuget/setup-nuget@v1
- name: Nuget restore
run: nuget restore HSPI_IRobot.sln
- name: Generate assembly version
uses: DoctorMcKay/action-csharp-majoryearweekbuild-version@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: MSBuild
run: |
msbuild /p:Configuration=Debug /m HSPI_IRobot.sln
msbuild /p:Configuration=Release /m HSPI_IRobot.sln
- name: Stage artifacts
run: |
mkdir artifacts
cp HSPI_IRobot\bin\Release\HSPI_IRobot.exe artifacts\HSPI_IRobot.exe
cp HSPI_IRobot\bin\Release\HSPI_IRobot.exe.config artifacts\HSPI_IRobot.exe.config
cp HSPI_IRobot\bin\Release\*.dll artifacts
cp html\*.* artifacts
cp install.txt artifacts\install.txt
$release_version = (Get-ChildItem -Filter "artifacts\HSPI_IRobot.exe" | Select-Object -ExpandProperty VersionInfo).FileVersion.Replace('.', '-')
echo "release_version=$release_version"
echo "release_version=$release_version" >> $env:GITHUB_ENV
- name: Stage debug artifacts
run: |
mkdir artifacts-debug
cp HSPI_IRobot\bin\Debug\HSPI_IRobot.exe artifacts-debug\HSPI_IRobot.exe
cp HSPI_IRobot\bin\Debug\HSPI_IRobot.exe.config artifacts-debug\HSPI_IRobot.exe.config
cp HSPI_IRobot\bin\Debug\*.dll artifacts-debug
cp html\*.* artifacts-debug
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: iRobot_${{ env.release_version }}
path: artifacts
- name: Upload debug artifacts
uses: actions/upload-artifact@v3
with:
name: Debug Build
path: artifacts-debug