From 97a0c3e4c20a3b61f24f64027fe2cbbecb7f5b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9=20Larivi=C3=A8re?= Date: Thu, 14 Nov 2024 14:27:43 +0100 Subject: [PATCH] Update CI/CD --- .github/workflows/build.yml | 6 ++--- .github/workflows/pull_request.yml | 10 +++++--- .github/workflows/release.yml | 6 ++--- README.md | 24 ++++++++++--------- .../Fabulous.MauiControls.fsproj | 2 +- templates/content/blank/NewApp.fsproj | 6 ++--- 6 files changed, 30 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 272d3a6..35e3cb3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,11 +12,11 @@ env: TEMPLATE_PROJ: templates/Fabulous.MauiControls.Templates.proj TEMPLATE_PKG: nupkgs/Fabulous.MauiControls.Templates NUPKG_FOLDER: nupkgs - XCODE_PATH: /Applications/Xcode_15.2.app/Contents/Developer + XCODE_PATH: /Applications/Xcode_16.0.app/Contents/Developer jobs: build: - runs-on: macos-13 + runs-on: macos-15 steps: - name: Checkout sources uses: actions/checkout@v3 @@ -34,7 +34,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 8.x + dotnet-version: 9.x - name: Use correct Xcode version run: sudo xcode-select -s ${XCODE_PATH} - name: Install dotnet workload diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index d8e07e7..4441c09 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -4,15 +4,15 @@ on: pull_request env: SLN_FILE: Fabulous.MauiControls.NoSamples.sln CONFIG: Release - XCODE_PATH: /Applications/Xcode_15.0.1.app/Contents/Developer + XCODE_PATH: /Applications/Xcode_16.0.app/Contents/Developer jobs: pull_request: - runs-on: macos-13 + runs-on: macos-15 steps: - name: Checkout sources uses: actions/checkout@v3 - - name: Setup .NET + - name: Setup .NET for Fantomas uses: actions/setup-dotnet@v3 with: dotnet-version: 8.x @@ -20,6 +20,10 @@ jobs: run: | dotnet tool restore dotnet fantomas --check src samples templates + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 9.x - name: Use correct Xcode version run: sudo xcode-select -s ${XCODE_PATH} - name: Install dotnet workload diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0ce09d9..12c825a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,11 +10,11 @@ env: CONFIG: Release SLN_FILE: Fabulous.MauiControls.NoSamples.sln TEMPLATE_PROJ: templates/Fabulous.MauiControls.Templates.proj - XCODE_PATH: /Applications/Xcode_15.0.1.app/Contents/Developer + XCODE_PATH: /Applications/Xcode_16.0.app/Contents/Developer jobs: release: - runs-on: macos-13 + runs-on: macos-15 environment: nuget steps: - name: Checkout sources @@ -40,7 +40,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 8.x + dotnet-version: 9.x - name: Use correct Xcode version run: sudo xcode-select -s ${XCODE_PATH} - name: Install dotnet workload diff --git a/README.md b/README.md index 83b7500..36289e2 100644 --- a/README.md +++ b/README.md @@ -25,18 +25,20 @@ let update msg model = | Decrement -> { model with Count = model.Count - 1 } let view model = - Application( - ContentPage( - VStack(spacing = 16.) { - Image("fabulous.png") - - Label($"Count is {model.Count}") - - Button("Increment", Increment) - Button("Decrement", Decrement) + Application() { + Window() { + ContentPage() { + VStack(spacing = 16.) { + Image("fabulous.png") + + Label($"Count is {model.Count}") + + Button("Increment", Increment) + Button("Decrement", Decrement) + } } - ) - ) + } + } ``` ## Getting Started diff --git a/src/Fabulous.MauiControls/Fabulous.MauiControls.fsproj b/src/Fabulous.MauiControls/Fabulous.MauiControls.fsproj index 7a1b01c..6a22340 100644 --- a/src/Fabulous.MauiControls/Fabulous.MauiControls.fsproj +++ b/src/Fabulous.MauiControls/Fabulous.MauiControls.fsproj @@ -251,7 +251,7 @@ This version will be used as the lower bound in the NuGet package --> - + diff --git a/templates/content/blank/NewApp.fsproj b/templates/content/blank/NewApp.fsproj index 8466fd7..a3fd74c 100644 --- a/templates/content/blank/NewApp.fsproj +++ b/templates/content/blank/NewApp.fsproj @@ -1,10 +1,10 @@ - net8.0-android;net8.0-ios;net8.0-maccatalyst - $(TargetFrameworks);net8.0-windows10.0.19041.0 + net9.0-android;net9.0-ios;net9.0-maccatalyst + $(TargetFrameworks);net9.0-windows10.0.19041.0 - + Exe NewApp true