Browse Source

Other pipelines

flabbet 11 months ago
parent
commit
1ef1709c2e

+ 0 - 40
pipelines/Linux/tests-arm64.yml

@@ -1,40 +0,0 @@
-trigger:
-- development
-- master
-- 2.0-cicd
-
-pool:
-  vmImage: 'ubuntu-latest'
-
-variables:
-  solution: '**/*.sln'
-  buildPlatform: 'linux-arm64'
-  buildConfiguration: 'Release'
-
-steps:
-- task: NuGetToolInstaller@1
-
-- task: DotNetCoreCLI@2
-  displayName: Install wasi-wasm
-  inputs:
-    command: 'custom'
-    custom: 'workload'
-    arguments: 'install wasi-experimental'
-
-- task: NuGetCommand@2
-  inputs:
-    restoreSolution: '$(solution)'
-
-- task: DotNetCoreCLI@2
-  displayName: Build
-  inputs:
-    command: 'build'
-    projects: '**/*.csproj'
-    arguments: '--configuration Release -r $(buildPlatform)'
-
-- task: DotNetCoreCLI@2
-  displayName: Tests
-  inputs:
-    command: test
-    projects: '**/*Tests/*.csproj'
-    arguments: '--configuration $(buildConfiguration)'

+ 74 - 0
pipelines/Linux/tests-ubuntu.yml

@@ -0,0 +1,74 @@
+trigger:
+- development
+- master
+- 2.0-cicd
+
+pool:
+  vmImage: 'ubuntu-latest'
+
+variables:
+  solution: '**/*.sln'
+  buildPlatform: 'linux-$(arch)'
+  buildConfiguration: 'Release'
+  wasiVer: 'wasi-sdk-24.0-$(wasi-arch)-linux'
+  wasiUrl: 'https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-24/$(wasiVer).tar.gz'
+
+steps:
+- task: CmdLine@2
+  displayName: 'Download WASI SDK'
+  inputs:
+    script: |
+      curl -L -o $(wasiVer).tar.gz $(wasiUrl)
+
+- task: CmdLine@2
+  displayName: 'Unpack WASI SDK'
+  inputs:
+    script: |
+      tar -xzf $(wasiVer).tar.gz
+      echo "Contents of directory after extraction:"
+      dir $(wasiVer)
+
+- task: PowerShell@2
+  displayName: 'Set Environment Path for WASI SDK'
+  inputs:
+    targetType: 'inline'
+    script: |
+      $env:WASI_SDK_PATH = "$(Get-Location)\$(wasiVer)"
+      Write-Host "##vso[task.setvariable variable=WASI_SDK_PATH]$env:WASI_SDK_PATH"
+
+- task: PowerShell@2
+  displayName: 'Verify Environment Path'
+  inputs:
+    targetType: 'inline'
+    script: |
+      Write-Host "Environment path set to: $env:WASI_SDK_PATH"
+
+
+- task: NuGetToolInstaller@1
+
+- task: DotNetCoreCLI@2
+  displayName: Install wasi-wasm
+  inputs:
+    command: 'custom'
+    custom: 'workload'
+    arguments: 'install wasi-experimental'
+
+
+- task: NuGetCommand@2
+  displayName: 'Restore solution'
+  inputs:
+    restoreSolution: '$(solution)'
+
+- task: DotNetCoreCLI@2
+  displayName: Build
+  inputs:
+    command: 'build'
+    projects: '**/*.csproj'
+    arguments: '--configuration Release -r $(buildPlatform)'
+
+- task: DotNetCoreCLI@2
+  displayName: Tests
+  inputs:
+    command: test
+    projects: '**/*Tests/*.csproj'
+    arguments: '--configuration $(buildConfiguration)'

+ 0 - 40
pipelines/Linux/tests-x64.yml

@@ -1,40 +0,0 @@
-trigger:
-- development
-- master
-- 2.0-cicd
-
-pool:
-  vmImage: 'ubuntu-latest'
-
-variables:
-  solution: '**/*.sln'
-  buildPlatform: 'linux-x64'
-  buildConfiguration: 'Release'
-
-steps:
-- task: NuGetToolInstaller@1
-
-- task: DotNetCoreCLI@2
-  displayName: Install wasi-wasm
-  inputs:
-    command: 'custom'
-    custom: 'workload'
-    arguments: 'install wasi-experimental'
-
-- task: NuGetCommand@2
-  inputs:
-    restoreSolution: '$(solution)'
-
-- task: DotNetCoreCLI@2
-  displayName: Build
-  inputs:
-    command: 'build'
-    projects: '**/*.csproj'
-    arguments: '--configuration Release -r $(buildPlatform)'
-
-- task: DotNetCoreCLI@2
-  displayName: Tests
-  inputs:
-    command: test
-    projects: '**/*Tests/*.csproj'
-    arguments: '--configuration $(buildConfiguration)'

+ 0 - 40
pipelines/MacOS/tests-arm64.yml

@@ -1,40 +0,0 @@
-trigger:
-- development
-- master
-- 2.0-cicd
-
-pool:
-  vmImage: 'macOS-latest'
-
-variables:
-  solution: '**/*.sln'
-  buildPlatform: 'osx-arm64'
-  buildConfiguration: 'Release'
-  
-steps:
-- task: NuGetToolInstaller@1
-
-- task: DotNetCoreCLI@2
-  displayName: Install wasi-wasm
-  inputs:
-    command: 'custom'
-    custom: 'workload'
-    arguments: 'install wasi-experimental'
-
-- task: NuGetCommand@2
-  inputs:
-    restoreSolution: '$(solution)'
-
-- task: DotNetCoreCLI@2
-  displayName: Build
-  inputs:
-    command: 'build'
-    projects: '**/*.csproj'
-    arguments: '--configuration Release -r $(buildPlatform)'
-
-- task: DotNetCoreCLI@2
-  displayName: Tests
-  inputs:
-    command: test
-    projects: '**/*Tests/*.csproj'
-    arguments: '--configuration $(buildConfiguration)'

+ 74 - 0
pipelines/MacOS/tests-macos.yml

@@ -0,0 +1,74 @@
+trigger:
+- development
+- master
+- 2.0-cicd
+
+pool:
+  vmImage: 'macos-latest'
+
+variables:
+  solution: '**/*.sln'
+  buildPlatform: 'osx-$(arch)'
+  buildConfiguration: 'Release'
+  wasiVer: 'wasi-sdk-24.0-$(wasi-arch)-macos'
+  wasiUrl: 'https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-24/$(wasiVer).tar.gz'
+
+steps:
+- task: CmdLine@2
+  displayName: 'Download WASI SDK'
+  inputs:
+    script: |
+      curl -L -o $(wasiVer).tar.gz $(wasiUrl)
+
+- task: CmdLine@2
+  displayName: 'Unpack WASI SDK'
+  inputs:
+    script: |
+      tar -xzf $(wasiVer).tar.gz
+      echo "Contents of directory after extraction:"
+      dir $(wasiVer)
+
+- task: PowerShell@2
+  displayName: 'Set Environment Path for WASI SDK'
+  inputs:
+    targetType: 'inline'
+    script: |
+      $env:WASI_SDK_PATH = "$(Get-Location)\$(wasiVer)"
+      Write-Host "##vso[task.setvariable variable=WASI_SDK_PATH]$env:WASI_SDK_PATH"
+
+- task: PowerShell@2
+  displayName: 'Verify Environment Path'
+  inputs:
+    targetType: 'inline'
+    script: |
+      Write-Host "Environment path set to: $env:WASI_SDK_PATH"
+
+
+- task: NuGetToolInstaller@1
+
+- task: DotNetCoreCLI@2
+  displayName: Install wasi-wasm
+  inputs:
+    command: 'custom'
+    custom: 'workload'
+    arguments: 'install wasi-experimental'
+
+
+- task: NuGetCommand@2
+  displayName: 'Restore solution'
+  inputs:
+    restoreSolution: '$(solution)'
+
+- task: DotNetCoreCLI@2
+  displayName: Build
+  inputs:
+    command: 'build'
+    projects: '**/*.csproj'
+    arguments: '--configuration Release -r $(buildPlatform)'
+
+- task: DotNetCoreCLI@2
+  displayName: Tests
+  inputs:
+    command: test
+    projects: '**/*Tests/*.csproj'
+    arguments: '--configuration $(buildConfiguration)'

+ 0 - 40
pipelines/MacOS/tests-x64.yml

@@ -1,40 +0,0 @@
-trigger:
-- development
-- master
-- 2.0-cicd
-
-pool:
-  vmImage: 'macOS-latest'
-
-variables:
-  solution: '**/*.sln'
-  buildPlatform: 'osx-x64'
-  buildConfiguration: 'Release'
-
-steps:
-- task: NuGetToolInstaller@1
-
-- task: DotNetCoreCLI@2
-  displayName: Install wasi-wasm
-  inputs:
-    command: 'custom'
-    custom: 'workload'
-    arguments: 'install wasi-experimental'
-
-- task: NuGetCommand@2
-  inputs:
-    restoreSolution: '$(solution)'
-
-- task: DotNetCoreCLI@2
-  displayName: Build
-  inputs:
-    command: 'build'
-    projects: '**/*.csproj'
-    arguments: '--configuration Release -r $(buildPlatform)'
-
-- task: DotNetCoreCLI@2
-  displayName: Tests
-  inputs:
-    command: test
-    projects: '**/*Tests/*.csproj'
-    arguments: '--configuration $(buildConfiguration)'

+ 0 - 40
pipelines/Windows/tests-arm64.yml

@@ -1,40 +0,0 @@
-trigger:
-- development
-- master
-- 2.0-cicd
-
-pool:
-  vmImage: 'windows-latest'
-
-variables:
-  solution: '**/*.sln'
-  buildPlatform: 'win-arm64'
-  buildConfiguration: 'Release'
-
-steps:
-- task: NuGetToolInstaller@1
-
-- task: DotNetCoreCLI@2
-  displayName: Install wasi-wasm
-  inputs:
-    command: 'custom'
-    custom: 'workload'
-    arguments: 'install wasi-experimental'
-
-- task: NuGetCommand@2
-  inputs:
-    restoreSolution: '$(solution)'
-
-- task: DotNetCoreCLI@2
-  displayName: Build
-  inputs:
-    command: 'build'
-    projects: '**/*.csproj'
-    arguments: '--configuration Release -r $(buildPlatform)'
-
-- task: DotNetCoreCLI@2
-  displayName: Tests
-  inputs:
-    command: test
-    projects: '**/*Tests/*.csproj'
-    arguments: '--configuration $(buildConfiguration)'

+ 3 - 3
pipelines/Windows/tests-x64.yml → pipelines/Windows/tests-windows.yml

@@ -8,9 +8,9 @@ pool:
 
 
 variables:
 variables:
   solution: '**/*.sln'
   solution: '**/*.sln'
-  buildPlatform: 'win-x64'
+  buildPlatform: 'win-$(arch)'
   buildConfiguration: 'Release'
   buildConfiguration: 'Release'
-  wasiVer: 'wasi-sdk-24.0-x86_64-windows'
+  wasiVer: 'wasi-sdk-24.0-$(wasi-arch)-windows'
   wasiUrl: 'https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-24/$(wasiVer).tar.gz'
   wasiUrl: 'https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-24/$(wasiVer).tar.gz'
 
 
 steps:
 steps:
@@ -54,8 +54,8 @@ steps:
     arguments: 'install wasi-experimental'
     arguments: 'install wasi-experimental'
 
 
 
 
-
 - task: NuGetCommand@2
 - task: NuGetCommand@2
+  displayName: 'Restore solution'
   inputs:
   inputs:
     restoreSolution: '$(solution)'
     restoreSolution: '$(solution)'