Skip to content

Commit 139aa66

Browse files
committed
build on macos
1 parent 5c1651c commit 139aa66

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

appveyor.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,27 @@ skip_tags: true
55
image:
66
- Visual Studio 2022
77
- Ubuntu
8+
- macOS
89

910
build_script:
10-
- pwsh: ./Build.ps1
11+
- pwsh: |
12+
if ($isWindows) {
13+
Invoke-WebRequest "https://dot.net/v1/dotnet-install.ps1" -OutFile "./dotnet-install.ps1"
14+
./dotnet-install.ps1 -JSonFile global.json -Architecture x64 -InstallDir 'C:\Program Files\dotnet'
15+
./Build.ps1
16+
}
17+
if ($isLinux) {
18+
Invoke-WebRequest "https://dot.net/v1/dotnet-install.sh" -OutFile "./dotnet-install.sh"
19+
sudo chmod u+x dotnet-install.sh
20+
sudo ./dotnet-install.sh --jsonfile global.json --architecture x64 --install-dir '/usr/share/dotnet'
21+
./Build.ps1
22+
}
23+
if ($isMacOS) {
24+
Invoke-WebRequest "https://dot.net/v1/dotnet-install.sh" -OutFile "./dotnet-install.sh"
25+
sudo chmod u+x dotnet-install.sh
26+
sudo ./dotnet-install.sh --jsonfile global.json --architecture x64 --install-dir '/usr/local/share/dotnet'
27+
./Build.ps1
28+
}
1129
1230
test: off
1331

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "7.0.102",
3+
"version": "7.0.201",
44
"allowPrerelease": false,
55
"rollForward": "latestFeature"
66
}

0 commit comments

Comments
 (0)