-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Testing new macos lane * Use publish mono workflow for mono-samples * Clarify parameter name * Skip build for mono projects * Remove .NET 6 Preview install from build validation * Fix iOS sample package version Co-authored-by: Mitchell Hwang <mitchell.hwang@microsoft.com>
- Loading branch information
Showing
4 changed files
with
48 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Publish Mono Samples | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- "core/mono-samples/**.c" | ||
- "core/mono-samples/**.config" | ||
- "core/mono-samples/**.cs" | ||
- "core/mono-samples/**.csproj" | ||
- "core/mono-samples/**.html" | ||
- "core/mono-samples/**.java" | ||
- "core/mono-samples/**.js" | ||
- "core/mono-samples/**.m" | ||
- "core/mono-samples/**.py" | ||
- "core/mono-samples/**.txt" | ||
branches: [ master ] | ||
|
||
env: | ||
DOTNET_INSTALLER_CHANNEL: '6.0.100-alpha.1.20531.2' | ||
DOTNET_DO_INSTALL: 'true' | ||
|
||
jobs: | ||
build-mono: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675 #@v2 | ||
- name: Setup .NET SDK 6 | ||
if: ${{ env.DOTNET_DO_INSTALL == 'true' }} | ||
run: | | ||
echo "Downloading dotnet-install.sh" | ||
curl https://raw.githubusercontent.com/dotnet/install-scripts/master/src/dotnet-install.sh --output dotnet-install.sh | ||
echo "Installing dotnet version ${{ env.DOTNET_INSTALLER_CHANNEL }}" | ||
chmod +x ./dotnet-install.sh | ||
./dotnet-install.sh -InstallDir ~/.dotnet -Version ${{ env.DOTNET_INSTALLER_CHANNEL }} | ||
- name: Publish mono iOS sample | ||
run: | | ||
cd ./core/mono-samples/iOS | ||
dotnet publish /p:RunningOnCI=True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters