Merge pull request #25 from VladislavAntonyuk/dependabot/nuget/Micros… #67
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: .NET | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest] | |
#os: [windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.x | |
- name: Install dependencies | |
run: dotnet workload install maui | |
- name: Install Tizen | |
if: ${{ matrix.os == 'windows-latest' }} | |
run: | | |
Invoke-WebRequest 'https://raw.githubusercontent.com/Samsung/Tizen.NET/main/workload/scripts/workload-install.ps1' -OutFile 'workload-install.ps1' | |
.\workload-install.ps1 | |
- name: Build | |
run: | | |
echo "Windows" | |
dotnet publish ContinueOnPC\ContinueOnPC.csproj -f net8.0-windows10.0.19041.0 | |
copy ".\ContinueOnPC\obj\Release\net8.0-windows10.0.19041.0\win10-x64\resizetizer\r\*.*" ".\ContinueOnPC\bin\Release\net8.0-windows10.0.19041.0\win10-x64\" | |
copy ".\ContinueOnPC\obj\Release\net8.0-windows10.0.19041.0\win10-x64\resizetizer\sp\*.*" ".\ContinueOnPC\bin\Release\net8.0-windows10.0.19041.0\win10-x64\" | |
&"${Env:ProgramFiles(x86)}\Windows Kits\10\App Certification Kit\MakeAppx.exe" pack /v /h SHA256 /d "ContinueOnPC\bin\Release\net8.0-windows10.0.19041.0\win10-x64" /p "output\ContinueOnPC.msix"; | |
copy ".\ContinueOnPC\bin\Release\net8.0-windows10.0.19041.0\win10-x64\AppPackages\**\*.msix" "output\ContinueOnPC-original.msix" | |
echo "Android" | |
dotnet publish ContinueOnPC\ContinueOnPC.csproj -f net8.0-android | |
copy ".\ContinueOnPC\bin\Release\net8.0-android\*.aab" "output\ContinueOnPC.aab" | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: ContinueOnPC | |
path: output/ | |
retention-days: 7 |