File tree 4 files changed +48
-11
lines changed
4 files changed +48
-11
lines changed Original file line number Diff line number Diff line change 45
45
Invoke-WebRequest https://raw.githubusercontent.com/dotnet/install-scripts/master/src/dotnet-install.ps1 -OutFile dotnet-install.ps1
46
46
echo "Installing dotnet version ${{ env.DOTNET_INSTALLER_CHANNEL }}"
47
47
.\dotnet-install.ps1 -InstallDir "c:\program files\dotnet" -Channel "${{ env.DOTNET_INSTALLER_CHANNEL }}"
48
- - name : Setup .NET SDK 6 Preview
49
- if : ${{ env.DOTNET_DO_INSTALL == 'true' }}
50
- run : |
51
- echo "Installing dotnet version ${{ env.DOTNET_INSTALLER_CHANNEL }}"
52
- .\dotnet-install.ps1 -InstallDir "c:\program files\dotnet" -Version 6.0.100-alpha.1.20529.2
53
48
54
49
# Install locate projs global tool
55
50
- name : Install LocateProjects tool
75
70
- name : Report status
76
71
run : |
77
72
./.github/workflows/dependencies/Out-GithubActionStatus.ps1
78
-
79
-
80
-
Original file line number Diff line number Diff line change @@ -129,11 +129,16 @@ foreach ($item in $workingSet) {
129
129
130
130
$data = $item.Split (' |' )
131
131
132
+ if ($data [1 ].Contains(" mono-samples" )){
133
+ Write-Host " Found mono-sample project, Skipping."
134
+ $counter ++
135
+ Continue
136
+ }
132
137
# Project found, build it
133
- if ([int ]$data [0 ] -eq 0 ) {
138
+ elseif ([int ]$data [0 ] -eq 0 ) {
134
139
$projectFile = Resolve-Path " $RepoRootDir \$ ( $data [2 ]) "
135
140
$configFile = [System.IO.Path ]::Combine([System.IO.Path ]::GetDirectoryName($projectFile ), " snippets.5000.json" )
136
-
141
+
137
142
# Create the default build command
138
143
" dotnet build `" $projectFile `" " | Out-File " .\run.bat"
139
144
Original file line number Diff line number Diff line change
1
+ name : Publish Mono Samples
2
+
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - " core/mono-samples/**.c"
7
+ - " core/mono-samples/**.config"
8
+ - " core/mono-samples/**.cs"
9
+ - " core/mono-samples/**.csproj"
10
+ - " core/mono-samples/**.html"
11
+ - " core/mono-samples/**.java"
12
+ - " core/mono-samples/**.js"
13
+ - " core/mono-samples/**.m"
14
+ - " core/mono-samples/**.py"
15
+ - " core/mono-samples/**.txt"
16
+ branches : [ master ]
17
+
18
+ env :
19
+ DOTNET_INSTALLER_CHANNEL : ' 6.0.100-alpha.1.20531.2'
20
+ DOTNET_DO_INSTALL : ' true'
21
+
22
+ jobs :
23
+ build-mono :
24
+ runs-on : macos-latest
25
+ steps :
26
+ - uses : actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 # @v2
27
+ - name : Setup .NET SDK 6
28
+ if : ${{ env.DOTNET_DO_INSTALL == 'true' }}
29
+ run : |
30
+ echo "Downloading dotnet-install.sh"
31
+ curl https://raw.githubusercontent.com/dotnet/install-scripts/master/src/dotnet-install.sh --output dotnet-install.sh
32
+ echo "Installing dotnet version ${{ env.DOTNET_INSTALLER_CHANNEL }}"
33
+ chmod +x ./dotnet-install.sh
34
+ ./dotnet-install.sh -InstallDir ~/.dotnet -Version ${{ env.DOTNET_INSTALLER_CHANNEL }}
35
+ - name : Publish mono iOS sample
36
+ run : |
37
+ cd ./core/mono-samples/iOS
38
+ dotnet publish /p:RunningOnCI=True
Original file line number Diff line number Diff line change 10
10
</PropertyGroup >
11
11
12
12
<ItemGroup >
13
- <PackageReference Include =" Microsoft.NET.Runtime.iOS.Sample.Mono" Version =" 6.0.0- $(BundledNETCoreAppPackageVersion)" GeneratePathProperty =" true" />
13
+ <PackageReference Include =" Microsoft.NET.Runtime.iOS.Sample.Mono" Version =" $(BundledNETCoreAppPackageVersion)" GeneratePathProperty =" true" />
14
14
</ItemGroup >
15
15
16
16
<UsingTask TaskName =" AppleAppBuilderTask"
42
42
<Output TaskParameter =" AppBundlePath" PropertyName =" AppBundlePath" />
43
43
<Output TaskParameter =" XcodeProjectPath" PropertyName =" XcodeProjectPath" />
44
44
</AppleAppBuilderTask >
45
+ </Target >
45
46
47
+ <Target Name =" LaunchApp" AfterTargets =" BuildAppBundle" Condition =" '$(RunningOnCI)' == ''" >
46
48
<Message Importance =" High" Text =" Xcode: $(XcodeProjectPath)" />
47
49
<Message Importance =" High" Text =" App: $(AppBundlePath)" />
48
50
<Message Importance =" High" Text =" Restarting device" />
You can’t perform that action at this time.
0 commit comments