Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
145 changes: 143 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ jobs:
# name: ''
# path: ''

# Builds the SecureFolderFS SDK libraries
# Builds the SecureFolderFS SDK libraries.
sdk:
needs: shared
runs-on: windows-2025-vs2026
Expand Down Expand Up @@ -209,7 +209,7 @@ jobs:
# name: ''
# path: ''

# Builds the SecureFolderFS Core libraries
# Builds the SecureFolderFS Core libraries.
core:
needs: [shared, lib]
runs-on: windows-2025-vs2026
Expand Down Expand Up @@ -275,6 +275,147 @@ jobs:
-p:Configuration=$env:CONFIGURATION `
-p:TargetFramework=$env:THIS_TFM

# - name: Upload artifact
# uses: actions/upload-artifact@v7
# with:
# name: ''
# path: ''

# Builds the SecureFolderFS cross-platform UI library.
# This library is the common denominator for both the MAUI and Uno Platform project heads.
ui:
needs: [core, sdk]
runs-on: windows-2025-vs2026
strategy:
fail-fast: false
matrix:
configuration: [Release, Debug]
targetFramework: [net10.0]
env:
CONFIGURATION: ${{ matrix.configuration }}
THIS_PROJECT_PATH: ${{ github.workspace }}\src\Platforms\SecureFolderFS.UI
THIS_TFM: ${{ matrix.targetFramework }}

steps:
- name: Checkout the repository
uses: actions/checkout@v6
with:
submodules: recursive

- name: Install Dependencies
uses: "./.github/install_dependencies"
with:
dotnet-version: ${{ env.DOTNET_SDK }}
run-uno-check: false

- name: Restore
run: |
msbuild $env:SOLUTION_PATH `
-t:Restore `
-p:Platform="Any CPU" `
-p:Configuration=$env:CONFIGURATION

- name: Build
run: |
msbuild $env:THIS_PROJECT_PATH `
-t:Build `
-p:Platform="Any CPU" `
-p:Configuration=$env:CONFIGURATION

# - name: Upload artifact
# uses: actions/upload-artifact@v7
# with:
# name: ''
# path: ''

# Builds the SecureFolderFS Uno Platform app project head.
uno:
needs: [core, sdk, shared, ui]
runs-on: windows-2025-vs2026
strategy:
fail-fast: false
matrix:
configuration: [Release, Debug]
targetFramework: [net10.0-desktop, net10.0-windows10.0.26100.0]
env:
CONFIGURATION: ${{ matrix.configuration }}
THIS_PROJECT_PATH: ${{ github.workspace }}\src\Platforms\SecureFolderFS.Uno
THIS_TFM: ${{ matrix.targetFramework }}

steps:
- name: Checkout the repository
uses: actions/checkout@v6
with:
submodules: recursive

- name: Install Dependencies
uses: "./.github/install_dependencies"
with:
dotnet-version: ${{ env.DOTNET_SDK }}
run-uno-check: false

- name: Restore
run: |
msbuild $env:SOLUTION_PATH `
-t:Restore `
-p:Platform="Any CPU" `
-p:Configuration=$env:CONFIGURATION

- name: Build
run: |
msbuild $env:THIS_PROJECT_PATH `
-t:Build `
-p:Platform="Any CPU" `
-p:Configuration=$env:CONFIGURATION `
-p:TargetFramework=$env:THIS_TFM

# - name: Upload artifact
# uses: actions/upload-artifact@v7
# with:
# name: ''
# path: ''

# Builds the SecureFolderFS MAUI app project head.
maui:
needs: [core, sdk, shared, ui]
runs-on: windows-2025-vs2026
strategy:
fail-fast: false
matrix:
configuration: [Release, Debug]
targetFramework: [net10.0-android, net10.0-ios]
env:
CONFIGURATION: ${{ matrix.configuration }}
THIS_PROJECT_PATH: ${{ github.workspace }}\src\Platforms\SecureFolderFS.Maui
THIS_TFM: ${{ matrix.targetFramework }}

steps:
- name: Checkout the repository
uses: actions/checkout@v6
with:
submodules: recursive

- name: Install Dependencies
uses: "./.github/install_dependencies"
with:
dotnet-version: ${{ env.DOTNET_SDK }}
run-uno-check: false

- name: Restore
run: |
msbuild $env:SOLUTION_PATH `
-t:Restore `
-p:Platform="Any CPU" `
-p:Configuration=$env:CONFIGURATION

- name: Build
run: |
msbuild $env:THIS_PROJECT_PATH `
-t:Build `
-p:Platform="Any CPU" `
-p:Configuration=$env:CONFIGURATION `
-p:TargetFramework=$env:THIS_TFM

# - name: Upload artifact
# uses: actions/upload-artifact@v7
# with:
Expand Down
29 changes: 3 additions & 26 deletions src/Platforms/SecureFolderFS.Uno/SecureFolderFS.Uno.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
<Project Sdk="Uno.Sdk">
<Project Sdk="Uno.Sdk">
<PropertyGroup>
<TargetFrameworks Condition=" $([MSBuild]::IsOSPlatform('macOS')) ">$(TargetFrameworks);net10.0-desktop</TargetFrameworks>
<TargetFrameworks Condition=" $([MSBuild]::IsOSPlatform('windows')) ">$(TargetFrameworks);net10.0-windows10.0.26100</TargetFrameworks>
<TargetFrameworks Condition=" $([MSBuild]::IsOSPlatform('linux')) ">$(TargetFrameworks);net10.0-desktop</TargetFrameworks>

<!-- To build SecureFolderFS (Desktop) on Windows, comment net10.0-windows[...] -->
<TargetFrameworks>net10.0-desktop;net10.0-windows10.0.26100.0</TargetFrameworks>

<!-- Uncomment if you want to explicity set a TargetFramework -->
<!--<TargetFramework>net10.0-desktop</TargetFramework>-->
<!--<TargetFramework>net10.0-maccatalyst</TargetFramework>-->
<!--<TargetFramework>net10.0-windows10.0.26100</TargetFramework>-->
</PropertyGroup>

Expand Down Expand Up @@ -59,23 +54,6 @@

<Choose>

<!-- Mac Catalyst -->
<When Condition="'$(TargetFramework)'=='net10.0-maccatalyst'">
<ItemGroup>
<PackageReference Include="Uno.CommunityToolkit.WinUI.UI.Controls.Markdown" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\Core\SecureFolderFS.Core.FUSE\SecureFolderFS.Core.FUSE.csproj" />
<ProjectReference Include="..\..\Core\SecureFolderFS.Core.WebDav\SecureFolderFS.Core.WebDav.csproj" />
</ItemGroup>

<PropertyGroup>
<_RequiresILLinkPack>true</_RequiresILLinkPack>
<_ComputeManagedAssemblyToLink>true</_ComputeManagedAssemblyToLink>
</PropertyGroup>
</When>

<!-- Skia Desktop -->
<When Condition="'$(TargetFramework)'=='net10.0-desktop'">
<PropertyGroup>
Expand Down Expand Up @@ -113,7 +91,7 @@
</When>

<!-- Windows -->
<When Condition="'$(TargetFramework)'=='net10.0-windows10.0.26100'">
<When Condition="'$(TargetFramework)'=='net10.0-windows10.0.26100.0'">
<ItemGroup>
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls.Markdown" />
<PackageReference Include="Vanara.PInvoke.ComCtl32" />
Expand Down Expand Up @@ -145,7 +123,6 @@
<EnableMsixTooling>True</EnableMsixTooling>
<ApplicationManifest>app.manifest</ApplicationManifest>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
<TargetFramework>$(DotNetVersion)-net10.0-windows10.0.26100</TargetFramework>
<PublishProfile>win-$(Platform).pubxml</PublishProfile>
<!--<RuntimeIdentifier>win-$(Platform)</RuntimeIdentifier>-->

Expand Down
Loading