-
Notifications
You must be signed in to change notification settings - Fork 5.1k
48 lines (45 loc) · 1.61 KB
/
publish-mono-samples.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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.20628.2'
DOTNET_DO_INSTALL: 'true'
jobs:
build-mono:
runs-on: macos-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #@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
- name: Publish mono Android sample
run: |
cd ./core/mono-samples/Android
export ANDROID_SDK_ROOT=${HOME}/Library/Android/sdk
export ANDROID_NDK_ROOT=${HOME}/Library/Android/sdk/ndk-bundle
dotnet publish /p:RunningOnCI=True
- name: Publish mono wasm sample
run: |
cd ./core/mono-samples/wasm
dotnet publish /p:RunningOnCI=True