浏览代码

update neko arch in windows jobs
#8419, closes #8585

Aleksandr Kuzmenko 6 年之前
父节点
当前提交
f244bb85b6
共有 2 个文件被更改,包括 7 次插入2 次删除
  1. 4 1
      extra/azure-pipelines/build-windows.yml
  2. 3 1
      extra/azure-pipelines/install-neko-snapshot.yaml

+ 4 - 1
extra/azure-pipelines/build-windows.yml

@@ -31,7 +31,10 @@ jobs:
         displayName: Install dependencies
       - template: install-neko-snapshot.yaml
         parameters:
-          platform: windows
+          ${{ if eq(parameters.arch, '64') }}:
+            platform: windows64
+          ${{ if eq(parameters.arch, '32') }}:
+            platform: windows
       - powershell: |
           Set-PSDebug -Trace 1
           curl.exe -fsSL -o cygwin-setup.exe --retry 3 $(CYGWIN_SETUP)

+ 3 - 1
extra/azure-pipelines/install-neko-snapshot.yaml

@@ -6,7 +6,9 @@ steps:
     - powershell: |
         Invoke-WebRequest https://build.haxe.org/builds/neko/${{parameters.platform}}/neko_latest.zip -OutFile $(Agent.TempDirectory)/neko_latest.zip
         Expand-Archive $(Agent.TempDirectory)/neko_latest.zip -DestinationPath $(Agent.TempDirectory)
-        $NEKOPATH = Get-ChildItem $(Agent.TempDirectory)/neko-*-win
+        $WIN_ARCH = If ("${{parameters.platform}}" -eq "windows") {"win"} Else {"win64"}
+        $NEKOPATH = Get-ChildItem $(Agent.TempDirectory)/neko-*-$WIN_ARCH
+        Write-Host "$NEKOPATH"
         Write-Host "##vso[task.prependpath]$NEKOPATH"
         Write-Host "##vso[task.setvariable variable=NEKOPATH]$NEKOPATH"
       displayName: Install Neko using snapshot from S3