Bump Xamarin.Essentials from 1.7.7 to 1.8.0 in /Source #8
Workflow file for this run
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
name: Xamarin | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
Build_Android: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET 3.1 + .NET v6.0 | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.0.x | |
3.1.x | |
- name: Restore NuGet | |
run: | | |
nuget restore ./Source | |
- name: Add msbuild to PATH | |
uses: microsoft/[email protected] | |
- name: Remove Compiler Errors | |
run: | | |
CognitiveServicesConstantsFile="./Source/FaceOff/Constants/CognitiveServicesConstants.cs" | |
sed -i '' "s/Add Face API Key Here/$CognitiveServicesAPIKey/g" "$CognitiveServicesConstantsFile" | |
sed -i '' "s/#error Face API Key Missing/\/\/#error Face API Key Missing/g" "$CognitiveServicesConstantsFile" | |
sed -i '' "s/Add Face API Base Url Here/$CognitiveServicesBaseUri/g" "$CognitiveServicesConstantsFile" | |
sed -i '' "s/#error Base Url Missing/\/\/#error Base Url Missing/g" "$CognitiveServicesConstantsFile" | |
shell: bash | |
- name: Build Android App | |
run: | | |
msbuild ./Source/FaceOff.Droid/FaceOff.Droid.csproj /verbosity:normal /p:Configuration=Release | |
Build_Windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET 3.1 + .NET v6.0 | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.0.x | |
3.1.x | |
- name: Restore NuGet | |
run: | | |
nuget restore ./Source | |
- name: Add msbuild to PATH | |
uses: microsoft/[email protected] | |
- name: Remove Compiler Errors | |
run: | | |
CognitiveServicesConstantsFile="./Source/FaceOff/Constants/CognitiveServicesConstants.cs" | |
sed -i '' "s/Add Face API Key Here/$CognitiveServicesAPIKey/g" "$CognitiveServicesConstantsFile" | |
sed -i '' "s/#error Face API Key Missing/\/\/#error Face API Key Missing/g" "$CognitiveServicesConstantsFile" | |
sed -i '' "s/Add Face API Base Url Here/$CognitiveServicesBaseUri/g" "$CognitiveServicesConstantsFile" | |
sed -i '' "s/#error Base Url Missing/\/\/#error Base Url Missing/g" "$CognitiveServicesConstantsFile" | |
shell: bash | |
- name: Build Windows App | |
run: | | |
msbuild ./Source/FaceOff.UWP/FaceOff.UWP.csproj /verbosity:normal /p:Configuration=Release | |
Build_UITest: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET 3.1 + .NET v6.0 | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.0.x | |
3.1.x | |
- name: Restore NuGet | |
run: | | |
nuget restore ./Source | |
- name: Add msbuild to PATH | |
uses: microsoft/[email protected] | |
- name: Remove Compiler Errors | |
run: | | |
CognitiveServicesConstantsFile="./Source/FaceOff/Constants/CognitiveServicesConstants.cs" | |
sed -i '' "s/Add Face API Key Here/$CognitiveServicesAPIKey/g" "$CognitiveServicesConstantsFile" | |
sed -i '' "s/#error Face API Key Missing/\/\/#error Face API Key Missing/g" "$CognitiveServicesConstantsFile" | |
sed -i '' "s/Add Face API Base Url Here/$CognitiveServicesBaseUri/g" "$CognitiveServicesConstantsFile" | |
sed -i '' "s/#error Base Url Missing/\/\/#error Base Url Missing/g" "$CognitiveServicesConstantsFile" | |
shell: bash | |
- name: Build UI Test App | |
run: | | |
msbuild ./Source/FaceOff.UITests/FaceOff.UITests.csproj /verbosity:normal /p:Configuration=Release |