diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e99cf5ab..ae047c30d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -147,6 +147,134 @@ jobs: -p:Platform="Any CPU" ` -p:Configuration=$env:CONFIGURATION +# - name: Upload artifact +# uses: actions/upload-artifact@v7 +# with: +# name: '' +# path: '' + + # Builds the SecureFolderFS SDK libraries + sdk: + needs: shared + runs-on: windows-2025-vs2026 + strategy: + fail-fast: false + matrix: + configuration: [Release, Debug] + project: [Sdk, Accounts, DeviceLink, Dropbox, Ftp, GoogleDrive, WebDavClient] + targetFramework: [net10.0] + env: + CONFIGURATION: ${{ matrix.configuration }} + PROJECT: ${{ matrix.project }} + + 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: Find appropriate project to build + run: | + if ($env:PROJECT -eq "Sdk") { + $thisProject = "Sdk" + } else { + $thisProject = "Sdk.$env:PROJECT" + } + $thisProjectPath = "$env:WORKING_DIR\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: '' + + # Builds the SecureFolderFS Core libraries + core: + needs: [shared, lib] + runs-on: windows-2025-vs2026 + strategy: + fail-fast: false + matrix: + configuration: [Release, Debug] + project: [Dokany, FileSystem, FUSE, WebDav, WinFsp, Core, Cryptography, Migration] + targetFramework: [net10.0] + include: + - configuration: Release + project: MobileFS + targetFramework: net10.0-android + - configuration: Debug + project: MobileFS + targetFramework: net10.0-android + - configuration: Release + project: MobileFS + targetFramework: net10.0-ios + - configuration: Debug + project: MobileFS + targetFramework: net10.0-ios + env: + CONFIGURATION: ${{ matrix.configuration }} + PROJECT: ${{ matrix.project }} + THIS_PROJECT_PATH: ${{ github.workspace }}\src\Core\SecureFolderFS.Core.${{ matrix.project }} + 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: Find appropriate project to build + run: | + if ($env:PROJECT -eq "Core") { + $thisProject = "Core" + } else { + $thisProject = "Core.$env:PROJECT" + } + $thisProjectPath = "$env:WORKING_DIR\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 ` + -t:Build ` + -p:Platform="Any CPU" ` + -p:Configuration=$env:CONFIGURATION ` + -p:TargetFramework=$env:THIS_TFM + # - name: Upload artifact # uses: actions/upload-artifact@v7 # with: diff --git a/README.md b/README.md index a910da250..c23edcd49 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@ - + diff --git a/src/Core/SecureFolderFS.Core.WebDav/SecureFolderFS.Core.WebDav.csproj b/src/Core/SecureFolderFS.Core.WebDav/SecureFolderFS.Core.WebDav.csproj index 2744f3c3c..d5e8c1552 100644 --- a/src/Core/SecureFolderFS.Core.WebDav/SecureFolderFS.Core.WebDav.csproj +++ b/src/Core/SecureFolderFS.Core.WebDav/SecureFolderFS.Core.WebDav.csproj @@ -10,8 +10,8 @@ - - + +