Skip to content

Repair .NET 10 and MudBlazor migration #31

Repair .NET 10 and MudBlazor migration

Repair .NET 10 and MudBlazor migration #31

name: .NET 10 migration build
on:
push:
branches:
- agent/net10-mudblazor-migration
pull_request:
branches:
- magiccodingman/net10
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repair branch
uses: actions/checkout@v4
with:
ref: agent/net10-mudblazor-migration
- name: Apply compiler-driven migration fixes
shell: bash
run: |
python3 .github/scripts/apply-net10-migrations.py
if ! git diff --quiet; then
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add TruthGate-Web
git commit -m "Finish MudBlazor 9 form and component migrations"
git push origin HEAD:agent/net10-mudblazor-migration
fi
- name: Setup .NET 10
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Restore
run: dotnet restore TruthGate-IPFS.sln
- name: Build
id: build
shell: bash
run: |
set +e
dotnet build TruthGate-IPFS.sln --configuration Release --no-restore > net10-build.log 2>&1
status=$?
echo "status=$status" >> "$GITHUB_OUTPUT"
tail -n 200 net10-build.log
exit 0
- name: Upload build diagnostics
if: always()
uses: actions/upload-artifact@v4
with:
name: net10-build-log
path: net10-build.log
if-no-files-found: error
- name: Report build failure
if: steps.build.outputs.status != '0'
run: exit 1