From 00278e31f1f41c35ed04e4341d3d2169eeb79960 Mon Sep 17 00:00:00 2001 From: icarda-git <47320559+icarda-git@users.noreply.github.com> Date: Wed, 26 Mar 2025 09:36:18 +0000 Subject: [PATCH 1/6] Added debugging steps, updated target frameworks, and improved workload installation --- .github/workflows/main.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c863548..cf2b768 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,18 +20,19 @@ jobs: with: dotnet-version: '9.0.x' + - name: List Installed .NET SDKs + run: dotnet --list-sdks + - name: List Project Structure - run: Get-ChildItem -Path . -Recurse -Depth 2 + run: Get-ChildItem -Path . -Recurse -Depth 3 - # Install workloads with --skip-manifest-update to prevent issues - name: Install MAUI Workload run: dotnet workload install android ios maccatalyst wasm-tools maui --skip-manifest-update - # Change to the correct directory before subsequent operations - - name: Restore Dependencies + - name: Restore Dependencies (with detailed logging) run: | cd ./FeedOptimizationApp - dotnet restore FeedOptimizationApp.sln + dotnet restore FeedOptimizationApp.sln --verbosity detailed - name: Build Android App run: | @@ -93,4 +94,4 @@ jobs: curl -H "Content-Type: application/json" \ -d '{"text": "🚀 New MAUI App build deployed to Google Play! 🎉"}' \ -X POST "${{ secrets.TEAMS_WEBHOOK_URL }}" - -X POST "${{ secrets.TEAMS_WEBHOOK_URL }}" + From 0ecef8f6eb12a990a19550f1162d04571e610ebe Mon Sep 17 00:00:00 2001 From: icarda-git <47320559+icarda-git@users.noreply.github.com> Date: Mon, 31 Mar 2025 16:26:41 +0000 Subject: [PATCH 2/6] Fix GitHub Actions pipeline: Added directory verification and updated paths to resolve 'FeedOptimizationApp' not found error" --- .github/workflows/main.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cf2b768..6754d2b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,6 +15,9 @@ jobs: - name: Checkout Repository uses: actions/checkout@v3 + - name: List Root Directory + run: Get-ChildItem -Path . # List the root directory to ensure FeedOptimizationApp is there + - name: Setup .NET SDK uses: actions/setup-dotnet@v3 with: @@ -24,24 +27,24 @@ jobs: run: dotnet --list-sdks - name: List Project Structure - run: Get-ChildItem -Path . -Recurse -Depth 3 + run: Get-ChildItem -Path . -Recurse -Depth 3 # List the project files to verify structure - name: Install MAUI Workload run: dotnet workload install android ios maccatalyst wasm-tools maui --skip-manifest-update - name: Restore Dependencies (with detailed logging) run: | - cd ./FeedOptimizationApp + Set-Location -Path D:\a\Feed-optimization-App\Feed-optimization-App\FeedOptimizationApp # Use full path dotnet restore FeedOptimizationApp.sln --verbosity detailed - name: Build Android App run: | - cd ./FeedOptimizationApp + Set-Location -Path D:\a\Feed-optimization-App\Feed-optimization-App\FeedOptimizationApp # Use full path dotnet build FeedOptimizationApp.sln -f net9.0-android -c Release - name: Create Android APK run: | - cd ./FeedOptimizationApp + Set-Location -Path D:\a\Feed-optimization-App\Feed-optimization-App\FeedOptimizationApp # Use full path dotnet publish FeedOptimizationApp.sln -f net9.0-android -c Release -o ./publish if (Test-Path ./publish/*.apk) { Get-ChildItem ./publish/*.apk | Select-Object -First 1 | Move-Item -Destination ./publish/App.apk @@ -95,3 +98,4 @@ jobs: -d '{"text": "🚀 New MAUI App build deployed to Google Play! 🎉"}' \ -X POST "${{ secrets.TEAMS_WEBHOOK_URL }}" + From 01d70a6e3f791c3a1c18dadc0baf8e9e80b0fad8 Mon Sep 17 00:00:00 2001 From: icarda-git <47320559+icarda-git@users.noreply.github.com> Date: Mon, 31 Mar 2025 16:37:30 +0000 Subject: [PATCH 3/6] Fix GitHub Actions pipeline: Added directory verification steps and full paths to resolve 'FeedOptimizationApp' not found error --- .github/workflows/main.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6754d2b..5853263 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,8 +15,9 @@ jobs: - name: Checkout Repository uses: actions/checkout@v3 + # List the root directory to verify the FeedOptimizationApp directory is present - name: List Root Directory - run: Get-ChildItem -Path . # List the root directory to ensure FeedOptimizationApp is there + run: Get-ChildItem -Path . - name: Setup .NET SDK uses: actions/setup-dotnet@v3 @@ -26,25 +27,33 @@ jobs: - name: List Installed .NET SDKs run: dotnet --list-sdks + # List the project structure to verify everything is in place - name: List Project Structure - run: Get-ChildItem -Path . -Recurse -Depth 3 # List the project files to verify structure + run: Get-ChildItem -Path . -Recurse -Depth 3 - name: Install MAUI Workload run: dotnet workload install android ios maccatalyst wasm-tools maui --skip-manifest-update + # List the contents of Feed-optimization-App to ensure FeedOptimizationApp is there + - name: List Feed-optimization-App Directory + run: Get-ChildItem -Path D:\a\Feed-optimization-App\Feed-optimization-App # List contents of this directory + + # Restore dependencies with detailed logging - name: Restore Dependencies (with detailed logging) run: | - Set-Location -Path D:\a\Feed-optimization-App\Feed-optimization-App\FeedOptimizationApp # Use full path + Set-Location -Path D:\a\Feed-optimization-App\Feed-optimization-App # Use full path dotnet restore FeedOptimizationApp.sln --verbosity detailed + # Build the Android App - name: Build Android App run: | - Set-Location -Path D:\a\Feed-optimization-App\Feed-optimization-App\FeedOptimizationApp # Use full path + Set-Location -Path D:\a\Feed-optimization-App\Feed-optimization-App # Use full path dotnet build FeedOptimizationApp.sln -f net9.0-android -c Release + # Create Android APK - name: Create Android APK run: | - Set-Location -Path D:\a\Feed-optimization-App\Feed-optimization-App\FeedOptimizationApp # Use full path + Set-Location -Path D:\a\Feed-optimization-App\Feed-optimization-App # Use full path dotnet publish FeedOptimizationApp.sln -f net9.0-android -c Release -o ./publish if (Test-Path ./publish/*.apk) { Get-ChildItem ./publish/*.apk | Select-Object -First 1 | Move-Item -Destination ./publish/App.apk @@ -53,6 +62,7 @@ jobs: exit 1 } + # Upload the Android Build Artifact - name: Upload Android Build Artifact uses: actions/upload-artifact@v4 with: @@ -97,5 +107,3 @@ jobs: curl -H "Content-Type: application/json" \ -d '{"text": "🚀 New MAUI App build deployed to Google Play! 🎉"}' \ -X POST "${{ secrets.TEAMS_WEBHOOK_URL }}" - - From 2439d42ca17cce8d054ee96c53a23c42394861f9 Mon Sep 17 00:00:00 2001 From: icarda-git <47320559+icarda-git@users.noreply.github.com> Date: Mon, 31 Mar 2025 16:46:48 +0000 Subject: [PATCH 4/6] patch to list all paths for restorations and dependacies --- .github/workflows/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5853263..544c5f2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,7 @@ jobs: - name: Checkout Repository uses: actions/checkout@v3 - # List the root directory to verify the FeedOptimizationApp directory is present + # List the root directory to verify the FeedOptimizationApp is there - name: List Root Directory run: Get-ChildItem -Path . @@ -38,6 +38,10 @@ jobs: - name: List Feed-optimization-App Directory run: Get-ChildItem -Path D:\a\Feed-optimization-App\Feed-optimization-App # List contents of this directory + # List all files to ensure FeedOptimizationApp.sln is present + - name: List All Files in FeedOptimizationApp Directory + run: Get-ChildItem -Path D:\a\Feed-optimization-App\Feed-optimization-App\ # List all files in the directory + # Restore dependencies with detailed logging - name: Restore Dependencies (with detailed logging) run: | From 3503100599bd2255635d670c5e3c26474a04a8ea Mon Sep 17 00:00:00 2001 From: icarda-git <47320559+icarda-git@users.noreply.github.com> Date: Mon, 31 Mar 2025 16:57:13 +0000 Subject: [PATCH 5/6] patches to find the correct path for FeedOptimizationApp.sln --- .github/workflows/main.yml | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 544c5f2..5efb396 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,9 +15,10 @@ jobs: - name: Checkout Repository uses: actions/checkout@v3 - # List the root directory to verify the FeedOptimizationApp is there - - name: List Root Directory - run: Get-ChildItem -Path . + # List all files and directories in the repository to verify structure + - name: List All Files and Directories + run: | + Get-ChildItem -Path . -Recurse | Select-Object FullName - name: Setup .NET SDK uses: actions/setup-dotnet@v3 @@ -27,21 +28,10 @@ jobs: - name: List Installed .NET SDKs run: dotnet --list-sdks - # List the project structure to verify everything is in place - - name: List Project Structure - run: Get-ChildItem -Path . -Recurse -Depth 3 - + # Install MAUI Workload - name: Install MAUI Workload run: dotnet workload install android ios maccatalyst wasm-tools maui --skip-manifest-update - # List the contents of Feed-optimization-App to ensure FeedOptimizationApp is there - - name: List Feed-optimization-App Directory - run: Get-ChildItem -Path D:\a\Feed-optimization-App\Feed-optimization-App # List contents of this directory - - # List all files to ensure FeedOptimizationApp.sln is present - - name: List All Files in FeedOptimizationApp Directory - run: Get-ChildItem -Path D:\a\Feed-optimization-App\Feed-optimization-App\ # List all files in the directory - # Restore dependencies with detailed logging - name: Restore Dependencies (with detailed logging) run: | @@ -111,3 +101,4 @@ jobs: curl -H "Content-Type: application/json" \ -d '{"text": "🚀 New MAUI App build deployed to Google Play! 🎉"}' \ -X POST "${{ secrets.TEAMS_WEBHOOK_URL }}" + From 2f607ef9ea321186e3f2fb4a2cbabe716188fa92 Mon Sep 17 00:00:00 2001 From: icarda-git <47320559+icarda-git@users.noreply.github.com> Date: Mon, 31 Mar 2025 17:24:07 +0000 Subject: [PATCH 6/6] path patches 2 --- .github/workflows/main.yml | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5efb396..0a06edf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,39 +15,30 @@ jobs: - name: Checkout Repository uses: actions/checkout@v3 - # List all files and directories in the repository to verify structure - - name: List All Files and Directories - run: | - Get-ChildItem -Path . -Recurse | Select-Object FullName - - name: Setup .NET SDK uses: actions/setup-dotnet@v3 with: dotnet-version: '9.0.x' - - name: List Installed .NET SDKs - run: dotnet --list-sdks + - name: List Project Structure + run: Get-ChildItem -Path . -Recurse -Depth 3 # List all files to verify path - # Install MAUI Workload - name: Install MAUI Workload run: dotnet workload install android ios maccatalyst wasm-tools maui --skip-manifest-update - # Restore dependencies with detailed logging - name: Restore Dependencies (with detailed logging) run: | - Set-Location -Path D:\a\Feed-optimization-App\Feed-optimization-App # Use full path - dotnet restore FeedOptimizationApp.sln --verbosity detailed + cd /workspaces/Feed-optimization-App # Change to the root directory of the repository + dotnet restore FeedOptimizationApp.sln --verbosity detailed # Restore dependencies - # Build the Android App - name: Build Android App run: | - Set-Location -Path D:\a\Feed-optimization-App\Feed-optimization-App # Use full path - dotnet build FeedOptimizationApp.sln -f net9.0-android -c Release + cd /workspaces/Feed-optimization-App # Ensure we're in the correct directory + dotnet build FeedOptimizationApp.sln -f net9.0-android -c Release # Build the solution - # Create Android APK - name: Create Android APK run: | - Set-Location -Path D:\a\Feed-optimization-App\Feed-optimization-App # Use full path + cd /workspaces/Feed-optimization-App # Ensure we're in the correct directory dotnet publish FeedOptimizationApp.sln -f net9.0-android -c Release -o ./publish if (Test-Path ./publish/*.apk) { Get-ChildItem ./publish/*.apk | Select-Object -First 1 | Move-Item -Destination ./publish/App.apk @@ -56,12 +47,11 @@ jobs: exit 1 } - # Upload the Android Build Artifact - name: Upload Android Build Artifact uses: actions/upload-artifact@v4 with: name: Android-APK - path: ./FeedOptimizationApp/publish/App.apk + path: /workspaces/Feed-optimization-App/publish/App.apk deploy-android: name: Deploy to Google Play @@ -102,3 +92,4 @@ jobs: -d '{"text": "🚀 New MAUI App build deployed to Google Play! 🎉"}' \ -X POST "${{ secrets.TEAMS_WEBHOOK_URL }}" +