Development/compositor2306 (#737) #137
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
name: Build ThunderNanoServices on Windows | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
env: | |
commander: ThunderNanoServices\Commander\Commander.vcxproj | |
devEnv: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\devenv.com | |
DHCPServer: ThunderNanoServices\DHCPServer\DHCPServer.vcxproj | |
DIALServer: ThunderNanoServices\DIALServer\DIALServer.vcxproj | |
dictionary: ThunderNanoServices\Dictionary\Dictionary.vcxproj | |
JSONRPCPlugin: ThunderNanoServices\examples\JSONRPCPlugin\JSONRPCPlugin.vcxproj | |
networkControl: ThunderNanoServices\NetworkControl\NetworkControl.vcxproj | |
outOfProcessPlugin: ThunderNanoServices\examples\OutOfProcessPlugin\OutOfProcessPlugin.vcxproj | |
remoteControl: ThunderNanoServices\RemoteControl\RemoteControl.vcxproj | |
solution: Thunder.sln | |
subsystemController: ThunderNanoServices\SubsystemController\SubsystemControl.vcxproj | |
svalbard: ThunderNanoServices\Svalbard\Svalbard.vcxproj | |
timeSync: ThunderNanoServices\TimeSync\TimeSync.vcxproj | |
webServer: ThunderNanoServices\WebServer\WebServer.vcxproj | |
jobs: | |
ThunderNanoServices: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
type: [Debug, Release] | |
version: [64, 86] | |
name: Build type - ${{matrix.type}}${{matrix.version}} | |
steps: | |
- name: Checkout ThunderOnWindows | |
uses: actions/checkout@v3 | |
with: | |
path: ThunderOnWindows | |
repository: WebPlatformForEmbedded/ThunderOnWindows | |
- name: Checkout Thunder | |
uses: actions/checkout@v3 | |
with: | |
path: ThunderOnWindows/Thunder | |
repository: ${{github.repository_owner}}/Thunder | |
- name: Checkout ThunderTools | |
uses: actions/checkout@v3 | |
with: | |
path: ThunderOnWindows/ThunderTools | |
repository: ${{github.repository_owner}}/ThunderTools | |
- name: Checkout ThunderClientLibraries | |
uses: actions/checkout@v3 | |
with: | |
path: ThunderOnWindows/ThunderClientLibraries | |
repository: ${{github.repository_owner}}/ThunderClientLibraries | |
- name: Checkout ThunderInterfaces | |
uses: actions/checkout@v3 | |
with: | |
path: ThunderOnWindows/ThunderInterfaces | |
repository: ${{github.repository_owner}}/ThunderInterfaces | |
- name: Checkout ThunderNanoServices | |
uses: actions/checkout@v3 | |
with: | |
path: ThunderOnWindows/ThunderNanoServices | |
repository: ${{github.repository_owner}}/ThunderNanoServices | |
- name: Checkout ThunderNanoServicesRDK | |
uses: actions/checkout@v3 | |
with: | |
path: ThunderOnWindows/ThunderNanoServicesRDK | |
repository: WebPlatformForEmbedded/ThunderNanoServicesRDK | |
- name: Install jsonref | |
run: pip install jsonref | |
- name: Build ThunderNanoServices | |
shell: cmd | |
run: | | |
cd ThunderOnWindows | |
"%devEnv%" /Build "${{matrix.type}}|x${{matrix.version}}" /Project "%commander%" "%solution%" | |
"%devEnv%" /Build "${{matrix.type}}|x${{matrix.version}}" /Project "%DHCPServer%" "%solution%" | |
"%devEnv%" /Build "${{matrix.type}}|x${{matrix.version}}" /Project "%DIALServer%" "%solution%" | |
"%devEnv%" /Build "${{matrix.type}}|x${{matrix.version}}" /Project "%dictionary%" "%solution%" | |
"%devEnv%" /Build "${{matrix.type}}|x${{matrix.version}}" /Project "%JSONRPCPlugin%" "%solution%" | |
"%devEnv%" /Build "${{matrix.type}}|x${{matrix.version}}" /Project "%networkControl%" "%solution%" | |
"%devEnv%" /Build "${{matrix.type}}|x${{matrix.version}}" /Project "%outOfProcessPlugin%" "%solution%" | |
"%devEnv%" /Build "${{matrix.type}}|x${{matrix.version}}" /Project "%remoteControl%" "%solution%" | |
"%devEnv%" /Build "${{matrix.type}}|x${{matrix.version}}" /Project "%subsystemController%" "%solution%" | |
"%devEnv%" /Build "${{matrix.type}}|x${{matrix.version}}" /Project "%svalbard%" "%solution%" | |
"%devEnv%" /Build "${{matrix.type}}|x${{matrix.version}}" /Project "%timeSync%" "%solution%" | |
"%devEnv%" /Build "${{matrix.type}}|x${{matrix.version}}" /Project "%webServer%" "%solution%" | |
- name: Tar files | |
run: tar -czvf ${{matrix.type}}${{matrix.version}}.tar.gz artifacts | |
- name: Upload | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ThunderNanoServices-${{matrix.type}}${{matrix.version}}-artifact | |
path: ${{matrix.type}}${{matrix.version}}.tar.gz |