Skip to content
Closed
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
151 changes: 58 additions & 93 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ on:
workflow_dispatch:

env:
WORKING_DIR: ${{ github.workspace }}
WORKSPACE: ${{ github.workspace }}
GLOBAL_JSON_PATH: '${{ github.workspace }}\global.json'
SOLUTION_PATH: '${{ github.workspace }}\SecureFolderFS.Public.slnx'
SFFS_UNO_PROJECT_PATH: '${{ github.workspace }}\src\Platforms\SecureFolderFS.Uno\SecureFolderFS.Uno.csproj'
SFFS_MAUI_PROJECT_PATH: '${{ github.workspace }}\src\Platforms\SecureFolderFS.Maui\SecureFolderFS.Maui.csproj'
SFFS_CLI_PROJECT_PATH: '${{ github.workspace }}\src\Platforms\SecureFolderFS.Cli\SecureFolderFS.Cli.csproj'
DOTNET_TFM: 'net10.0'
DOTNET_SDK: '10.0.102'
NUGET_PACKAGES: ${{ github.workspace }}\.nuget\packages
NUGET_HTTP_CACHE_PATH: ${{ github.workspace }}\.nuget\http-cache

jobs:
# Ensures that the formatting in all XAML files across the codebase is correct for the latest commit.
Expand Down Expand Up @@ -61,9 +63,11 @@ jobs:
matrix:
configuration: [Release, Debug]
project: [NWebDav.Server, NWebDav.Server.HttpListener, Tmds.Fuse]
targetFramework: [net10.0]
env:
CONFIGURATION: ${{ matrix.configuration }}
PROJECT: ${{ matrix.project }}
ID: runtime.lib.${{ matrix.project }}.${{ matrix.targetFramework }}.Environment-${{ matrix.configuration }}

steps:
- name: Checkout the repository
Expand All @@ -84,7 +88,7 @@ jobs:
} else {
$thisProject = "Tmds.Fuse"
}
$thisProjectPath = "$env:WORKING_DIR\lib\$thisProject\src\$env:PROJECT"
$thisProjectPath = "$env:WORKSPACE\lib\$thisProject\src\$env:PROJECT"
Add-Content -Path $env:GITHUB_ENV -Value "THIS_PROJECT_PATH=$thisProjectPath"

- name: Restore
Expand All @@ -101,12 +105,6 @@ jobs:
-p:Platform="Any CPU" `
-p:Configuration=$env:CONFIGURATION

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

# Builds the shared libraries consumed by almost all projects in the SecureFolderFS codebase.
shared:
runs-on: windows-2025-vs2026
Expand All @@ -120,6 +118,7 @@ jobs:
CONFIGURATION: ${{ matrix.configuration }}
PROJECT: ${{ matrix.project }}
THIS_PROJECT_PATH: ${{ github.workspace }}\src\Shared\SecureFolderFS.${{ matrix.project }}
ID: runtime.shared.${{ matrix.project }}.${{ matrix.targetFramework }}.Environment-${{ matrix.configuration }}

steps:
- name: Checkout the repository
Expand Down Expand Up @@ -147,11 +146,14 @@ jobs:
-p:Platform="Any CPU" `
-p:Configuration=$env:CONFIGURATION

# - name: Upload artifact
# uses: actions/upload-artifact@v7
# with:
# name: ''
# path: ''
- name: Upload workspace
if: ${{ matrix.project == 'Storage' }}
uses: actions/upload-artifact@v7
with:
name: ${{ env.ID }}
path: ${{ github.workspace }}
retention-days: 1
include-hidden-files: true

# Builds the SecureFolderFS SDK libraries.
sdk:
Expand All @@ -166,12 +168,14 @@ jobs:
env:
CONFIGURATION: ${{ matrix.configuration }}
PROJECT: ${{ matrix.project }}
ID: runtime.sdk.${{ matrix.project }}.${{ matrix.targetFramework }}.Environment-${{ matrix.configuration }}
PREREQUISITE: runtime.shared.Storage.net10.0.Environment-${{ matrix.configuration }}

steps:
- name: Checkout the repository
uses: actions/checkout@v6
- name: Download workspace
uses: actions/download-artifact@v8
with:
submodules: recursive
name: ${{ env.PREREQUISITE }}

- name: Install Dependencies
uses: "./.github/install_dependencies"
Expand All @@ -186,28 +190,24 @@ jobs:
} else {
$thisProject = "Sdk.$env:PROJECT"
}
$thisProjectPath = "$env:WORKING_DIR\src\Sdk\SecureFolderFS.$thisProject"
$thisProjectPath = "$env:WORKSPACE\src\Sdk\SecureFolderFS.$thisProject"
Add-Content -Path $env:GITHUB_ENV -Value "THIS_PROJECT_PATH=$thisProjectPath"

- 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: ''
- name: Upload workspace
if: ${{ matrix.project == 'Sdk' }}
uses: actions/upload-artifact@v7
with:
name: ${{ env.ID }}
path: ${{ github.workspace }}
retention-days: 1
include-hidden-files: true

# Builds the SecureFolderFS Core libraries.
core:
Expand Down Expand Up @@ -237,12 +237,14 @@ jobs:
PROJECT: ${{ matrix.project }}
THIS_PROJECT_PATH: ${{ github.workspace }}\src\Core\SecureFolderFS.Core.${{ matrix.project }}
THIS_TFM: ${{ matrix.targetFramework }}
ID: runtime.core.${{ matrix.project }}.${{ matrix.targetFramework }}.Environment-${{ matrix.configuration }}
PREREQUISITE: runtime.shared.Storage.net10.0.Environment-${{ matrix.configuration }}

steps:
- name: Checkout the repository
uses: actions/checkout@v6
- name: Download workspace
uses: actions/download-artifact@v8
with:
submodules: recursive
name: ${{ env.PREREQUISITE }}

- name: Install Dependencies
uses: "./.github/install_dependencies"
Expand All @@ -257,16 +259,9 @@ jobs:
} else {
$thisProject = "Core.$env:PROJECT"
}
$thisProjectPath = "$env:WORKING_DIR\src\Core\SecureFolderFS.$thisProject"
$thisProjectPath = "$env:WORKSPACE\src\Core\SecureFolderFS.$thisProject"
Add-Content -Path $env:GITHUB_ENV -Value "THIS_PROJECT_PATH=$thisProjectPath"

- 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 `
Expand All @@ -275,12 +270,6 @@ 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:
Expand All @@ -290,43 +279,41 @@ jobs:
fail-fast: false
matrix:
configuration: [Release, Debug]
project: [UI]
targetFramework: [net10.0]
env:
CONFIGURATION: ${{ matrix.configuration }}
THIS_PROJECT_PATH: ${{ github.workspace }}\src\Platforms\SecureFolderFS.UI
THIS_TFM: ${{ matrix.targetFramework }}
ID: runtime.ui.${{ matrix.project }}.${{ matrix.targetFramework }}.Environment-${{ matrix.configuration }}
PREREQUISITE: runtime.sdk.Sdk.net10.0.Environment-${{ matrix.configuration }}

steps:
- name: Checkout the repository
uses: actions/checkout@v6
- name: Download workspace
uses: actions/download-artifact@v8
with:
submodules: recursive
name: ${{ env.PREREQUISITE }}

- 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: ''
- name: Upload workspace
uses: actions/upload-artifact@v7
with:
name: ${{ env.ID }}
path: ${{ github.workspace }}
retention-days: 1
include-hidden-files: true

# Builds the SecureFolderFS Uno Platform app project head.
uno:
Expand All @@ -336,31 +323,26 @@ jobs:
fail-fast: false
matrix:
configuration: [Release, Debug]
project: [Uno]
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 }}
PREREQUISITE: runtime.ui.UI.net10.0.Environment-${{ matrix.configuration }}

steps:
- name: Checkout the repository
uses: actions/checkout@v6
- name: Download workspace
uses: actions/download-artifact@v8
with:
submodules: recursive
name: ${{ env.PREREQUISITE }}

- 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 `
Expand All @@ -369,12 +351,6 @@ jobs:
-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]
Expand All @@ -383,41 +359,30 @@ jobs:
fail-fast: false
matrix:
configuration: [Release, Debug]
project: [Maui]
targetFramework: [net10.0-android, net10.0-ios]
env:
CONFIGURATION: ${{ matrix.configuration }}
THIS_PROJECT_PATH: ${{ github.workspace }}\src\Platforms\SecureFolderFS.Maui
THIS_TFM: ${{ matrix.targetFramework }}
PREREQUISITE: runtime.ui.UI.net10.0.Environment-${{ matrix.configuration }}

steps:
- name: Checkout the repository
uses: actions/checkout@v6
- name: Download workspace
uses: actions/download-artifact@v8
with:
submodules: recursive
name: ${{ env.PREREQUISITE }}

- 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: ''
Loading