Skip to content

Commit

Permalink
Update CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
TimLariviere committed Nov 14, 2024
1 parent d4887ae commit e072615
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,26 @@ 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
- name: Check code formatting
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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions templates/content/blank/NewApp.fsproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>
<TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net9.0-windows10.0.19041.0</TargetFrameworks>
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
<!-- <TargetFrameworks>$(TargetFrameworks);net8.0-tizen</TargetFrameworks> -->
<!-- <TargetFrameworks>$(TargetFrameworks);net9.0-tizen</TargetFrameworks> -->
<OutputType>Exe</OutputType>
<RootNamespace>NewApp</RootNamespace>
<UseMaui>true</UseMaui>
Expand Down

0 comments on commit e072615

Please sign in to comment.