feat: update to bit 7.1.0 #27 (#28) #14
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: Bit.TemplatePlayground CI | |
# https://bitplatform.dev/templates/dev-ops | |
env: | |
WEB_APP_DEPLOYMENT_TYPE: 'Spa' | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "develop" ] | |
jobs: | |
build-blazor-server: | |
name: build blazor server | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
global-json-file: global.json | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Build | |
run: dotnet build src/Client/Web/Bit.TemplatePlayground.Client.Web.csproj -p:Configuration=Release -p:WebAppDeploymentType="${{ env.WEB_APP_DEPLOYMENT_TYPE }}" | |
build-blazor-hybrid-android: | |
name: build blazor hybrid (android) | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
global-json-file: global.json | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install maui | |
run: cd src && dotnet workload install maui-android | |
- name: Build | |
run: dotnet build src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:RunAOTCompilation=false -p:BlazorMode=BlazorHybrid -p:Configuration=Release -f net8.0-android | |
build-blazor-hybrid-windows: | |
name: build blazor hybrid (windows) | |
runs-on: windows-2022 | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
global-json-file: global.json | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install maui | |
run: cd src && dotnet workload install maui | |
- name: Build | |
run: dotnet build src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -f net8.0-windows10.0.19041.0 | |
build-blazor-hybrid-iOS: | |
name: build blazor hybrid (iOS) | |
runs-on: macos-13 | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
global-json-file: global.json | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install maui | |
run: cd src && dotnet workload install maui | |
- name: Build | |
run: dotnet build src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -f net8.0-ios | |
build-blazor-hybrid-maccatalyst: | |
name: build blazor hybrid (maccatalyst) | |
runs-on: macos-13 | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
global-json-file: global.json | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install maui | |
run: cd src && dotnet workload install maui | |
- name: Build | |
run: dotnet build src/Client/App/Bit.TemplatePlayground.Client.App.csproj -p:BlazorMode=BlazorHybrid -p:Configuration=Release -f net8.0-maccatalyst | |
build-blazor-api-wasm: | |
name: build blazor api + web assembly | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
global-json-file: global.json | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Switch to blazor wasm | |
run: sed -i 's/Microsoft.NET.Sdk.Web/Microsoft.NET.Sdk.BlazorWebAssembly/g' src/Client/Web/Bit.TemplatePlayground.Client.Web.csproj | |
- name: Install wasm | |
run: cd src && dotnet workload install wasm-tools wasm-experimental | |
- name: Build | |
run: dotnet build src/Server/Api/Bit.TemplatePlayground.Server.Api.csproj -p:BlazorMode=BlazorWebAssembly -p:Configuration=Release -p:WebAppDeploymentType="${{ env.WEB_APP_DEPLOYMENT_TYPE }}" |