diff --git a/.github/azure-pipelines.yml b/.github/azure-pipelines.yml index 30cee094..8f797d87 100644 --- a/.github/azure-pipelines.yml +++ b/.github/azure-pipelines.yml @@ -24,6 +24,25 @@ jobs: platform: x64 jsEngine: JSI + # UWP + - template: jobs/uwp.yml + parameters: + name: UWP_x64_Chakra + platform: x64 + jsEngine: Chakra + + - template: jobs/uwp.yml + parameters: + name: UWP_x64_JSI + platform: x64 + jsEngine: JSI + + - template: jobs/uwp.yml + parameters: + name: UWP_arm64_JSI + platform: arm64 + jsEngine: JSI + # Android - template: jobs/android.yml parameters: diff --git a/.github/jobs/uwp.yml b/.github/jobs/uwp.yml new file mode 100644 index 00000000..cb5d2a58 --- /dev/null +++ b/.github/jobs/uwp.yml @@ -0,0 +1,26 @@ +parameters: +- name: name + type: string +- name: platform + type: string +- name: jsEngine + type: string + +jobs: +- job: ${{parameters.name}} + timeoutInMinutes: 15 + + pool: + vmImage: windows-latest + + steps: + - script: cmake -B Build/UWP -A ${{parameters.platform}} -D NAPI_JAVASCRIPT_ENGINE=${{parameters.jsEngine}} -D CMAKE_SYSTEM_NAME=WindowsStore -D CMAKE_SYSTEM_VERSION=10.0 + displayName: 'Configure CMake' + + - task: MSBuild@1 + inputs: + solution: 'Build/UWP/JsRuntimeHost.sln' + maximumCpuCount: true + configuration: 'Debug' + displayName: 'Build Solution' + diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index e2f61a65..d7c3724a 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -1,2 +1,4 @@ -add_subdirectory(UnitTests) -npm(install ${CMAKE_CURRENT_SOURCE_DIR} "UnitTests") \ No newline at end of file +if (NOT WINDOWS_STORE) + add_subdirectory(UnitTests) + npm(install ${CMAKE_CURRENT_SOURCE_DIR} "UnitTests") +endif() \ No newline at end of file