Skip to content

Commit

Permalink
Extend workflow options
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrawehr committed Feb 11, 2024
1 parent e527c6b commit 862431a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/arduino.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,16 @@ jobs:
build:
# The type of runner that the job will run on
runs-on: windows-latest
strategy:
matrix:
configuration: [Debug, Release]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@master

- run: |
eng/ArduinoCsCI.cmd %USERPROFILE% Debug
eng/ArduinoCsCI.cmd %USERPROFILE% ${{ matrix.configuration }}
8 changes: 8 additions & 0 deletions eng/ArduinoCsCI.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ dotnet test -c %2 --no-build --no-restore --filter feature=firmata -l "console;v

if errorlevel 1 goto error

echo on
echo Run full compiler against simple example
REM The current directory is tools/ArduinoCsCompiler
%acspath% compile --run samples\BlinkingLed\bin\%2\net6.0\BlinkingLed.exe --network localhost --mapfile BlinkingLed-tokenmap.txt
REM copy token map to output (so we have something to compare the history of sizes, if something changes unexpectedly)
type BlinkingLed-tokenmap.txt


popd
taskkill /im ExtendedConfigurableFirmataSim.exe /f

Expand Down
10 changes: 9 additions & 1 deletion tools/ArduinoCsCompiler/Frontend/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@
},
"BlinkingLed": {
"commandName": "Project",
"commandLineArgs": "compile --run --debug ..\\..\\..\\..\\samples\\BlinkingLed\\bin\\debug\\net6.0\\BlinkingLed.exe --network localhost --verbose --mapfile ..\\..\\..\\..\\samples\\BlinkingLed\\bin\\debug\\net6.0\\BlinkingLed-tokenmap.txt"
"commandLineArgs": "compile --run ..\\..\\..\\..\\samples\\BlinkingLed\\bin\\$(Configuration)\\net6.0\\BlinkingLed.exe --network localhost --mapfile ..\\..\\..\\..\\samples\\BlinkingLed\\bin\\$(Configuration)\\net6.0\\BlinkingLed-tokenmap.txt"
},
"Help": {
"commandName": "Project",
"commandLineArgs": "--version"
},
"WeatherStation": {
"commandName": "Project",
"commandLineArgs": "compile --run ..\\..\\..\\..\\samples\\WeatherStation\\bin\\$(Configuration)\\net6.0\\WeatherStation.exe --network localhost --mapfile ..\\..\\..\\..\\samples\\WeatherStation\\bin\\$(Configuration)\\net6.0\\WeatherStation-tokenmap.txt"
}
}
}

0 comments on commit 862431a

Please sign in to comment.