Skip to content

Commit 1781a9e

Browse files
committed
appveyor
1 parent aaa7c41 commit 1781a9e

2 files changed

Lines changed: 17 additions & 8 deletions

File tree

appveyor.ps1

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1+
$dotnet_dir = Join-Path -Path (Get-Location) -ChildPath "dotnet_dir";
2+
$dotnet_install_file = Join-Path -Path $dotnet_dir -ChildPath "dotnet-install.ps1";
3+
$dotnet_runner = Join-Path -Path $dotnet_dir -ChildPath "dotnet";
4+
5+
Invoke-WebRequest -Uri 'https://dot.net/v1/dotnet-install.ps1' -UseBasicParsing -OutFile $dotnet_install_file;
6+
& $dotnet_install_file -Architecture x64 -Version "6.0.301" -InstallDir $dotnet_dir;
7+
18
$archs = 'x64', 'x86';
29

310
foreach ($arch in $archs) {
411
Remove-Item .\LuaInstaller.Console\bin, .\LuaInstaller.Console\obj, .\LuaInstaller\bin, .\LuaInstaller\obj -Recurse;
512

6-
& dotnet.exe restore LuaInstaller.sln
7-
& dotnet.exe build .\LuaInstaller.Console\LuaInstaller.Console.csproj -c Release -r win-$arch --self-contained true
8-
& dotnet.exe build .\LuaInstaller\LuaInstaller.csproj -c Release -r win-$arch --self-contained true
13+
& $dotnet_runner restore LuaInstaller.sln;
14+
& $dotnet_runner build .\LuaInstaller.Console\LuaInstaller.Console.csproj -c Release -r win-$arch --self-contained true;
15+
& $dotnet_runner build .\LuaInstaller\LuaInstaller.csproj -c Release -r win-$arch --self-contained true;
916

1017
$console = ".\LuaInstaller.Console\bin\Release\netcoreapp3.0\win-$arch\LuaInstaller.Console.exe";
1118

appveyor.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
version: 1.0.{build}
22

3-
build: off
3+
image: Visual Studio 2022
4+
5+
configuration: Release
6+
7+
platform: Any CPU
48

59
install:
6-
- ps: Invoke-WebRequest -Uri 'https://dot.net/v1/dotnet-install.ps1' -UseBasicParsing -OutFile "$env:temp\dotnet-install.ps1"
7-
- ps: '& $env:temp\dotnet-install.ps1 -Architecture x64 -Version "6.0.301" -InstallDir "$env:ProgramFiles\dotnet"'
10+
- pwsh: .\appveyor.ps1
811

9-
build_script:
10-
- ps: .\appveyor.ps1
12+
build: off

0 commit comments

Comments
 (0)