From 44386edbe4e2e3d7eabbdb88446500506a776a15 Mon Sep 17 00:00:00 2001
From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com>
Date: Thu, 13 Feb 2025 23:20:59 -0600
Subject: [PATCH 1/4] chore: fix workflows and build now that model files are
not in the repository
---
.github/workflows/publish.yml | 2 --
.github/workflows/pull_request.yml | 3 ---
src/BGR.Console/BGR.Console.csproj | 25 +++++++++++++++++++++++++
3 files changed, 25 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 5708898..7cb04b1 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -19,7 +19,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
- lfs: true
fetch-depth: 0
token: ${{ secrets.ACTIONS_PAT }}
- name: Setup .NET 9
@@ -59,7 +58,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
- lfs: true
fetch-depth: 0
ref: ${{ github.ref }}
token: ${{ secrets.ACTIONS_PAT }}
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml
index 4a95ca7..9b2b2f2 100644
--- a/.github/workflows/pull_request.yml
+++ b/.github/workflows/pull_request.yml
@@ -21,7 +21,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
- lfs: true
fetch-depth: 0
token: ${{ secrets.ACTIONS_PAT }}
- name: Setup .NET
@@ -53,7 +52,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
- lfs: true
fetch-depth: 0
token: ${{ secrets.ACTIONS_PAT }}
- name: Setup .NET 9
@@ -83,7 +81,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
- lfs: true
fetch-depth: 0
token: ${{ secrets.ACTIONS_PAT }}
- name: Download ubuntu-latest report
diff --git a/src/BGR.Console/BGR.Console.csproj b/src/BGR.Console/BGR.Console.csproj
index 38cf575..3ba3741 100644
--- a/src/BGR.Console/BGR.Console.csproj
+++ b/src/BGR.Console/BGR.Console.csproj
@@ -12,6 +12,31 @@
Exe
+
+ Resources\Files
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From 037b8882806ce9c38e3bc5e52cc949da72cf344b Mon Sep 17 00:00:00 2001
From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com>
Date: Thu, 13 Feb 2025 23:30:02 -0600
Subject: [PATCH 2/4] chore: add step for listing models for debugging workflow
---
.github/workflows/pull_request.yml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml
index 9b2b2f2..76c3611 100644
--- a/.github/workflows/pull_request.yml
+++ b/.github/workflows/pull_request.yml
@@ -64,6 +64,8 @@ jobs:
run: dotnet restore src
- name: Build on ${{ matrix.os }}
run: dotnet build src --no-restore
+ - name: List downloaded models
+ run: ls -l src/BGR.Console/Resources/Files
- name: Test on ${{ matrix.os }}
run: dotnet test src --no-build --verbosity normal
- name: Rename test coverage report
From 3073a4038e01841eebda029fea8e226a03896959 Mon Sep 17 00:00:00 2001
From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com>
Date: Fri, 14 Feb 2025 00:12:54 -0600
Subject: [PATCH 3/4] chore: put embedded resources item group in target where
models are downloaded
---
.github/workflows/pull_request.yml | 4 +---
src/BGR.Console/BGR.Console.csproj | 22 +++++++++++-----------
2 files changed, 12 insertions(+), 14 deletions(-)
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml
index 76c3611..392fec4 100644
--- a/.github/workflows/pull_request.yml
+++ b/.github/workflows/pull_request.yml
@@ -63,9 +63,7 @@ jobs:
- name: Restore dependencies
run: dotnet restore src
- name: Build on ${{ matrix.os }}
- run: dotnet build src --no-restore
- - name: List downloaded models
- run: ls -l src/BGR.Console/Resources/Files
+ run: dotnet build --no-restore src
- name: Test on ${{ matrix.os }}
run: dotnet test src --no-build --verbosity normal
- name: Rename test coverage report
diff --git a/src/BGR.Console/BGR.Console.csproj b/src/BGR.Console/BGR.Console.csproj
index 3ba3741..eb1123a 100644
--- a/src/BGR.Console/BGR.Console.csproj
+++ b/src/BGR.Console/BGR.Console.csproj
@@ -13,7 +13,7 @@
- Resources\Files
+ Resources/Files
@@ -22,19 +22,23 @@
+
+
+
+
@@ -56,8 +60,4 @@
-
-
-
-
From 7bed6cb2c10901ca66a6b6bb95ee402760d2e831 Mon Sep 17 00:00:00 2001
From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com>
Date: Fri, 14 Feb 2025 00:22:12 -0600
Subject: [PATCH 4/4] chore: remove ignore path from workflows
---
.github/workflows/publish.yml | 1 -
.github/workflows/pull_request.yml | 1 -
2 files changed, 2 deletions(-)
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 7cb04b1..35187a8 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -5,7 +5,6 @@ on:
paths-ignore:
- "**/README.md"
- "**/.gitignore"
- - "**/.gitaltributes"
- "**/.editorconfig"
- "**/LICENSE.md"
- .github/**
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml
index 392fec4..6b7e30d 100644
--- a/.github/workflows/pull_request.yml
+++ b/.github/workflows/pull_request.yml
@@ -6,7 +6,6 @@ on:
- "**/README.md"
- "**/LICENSE.md"
- "**/.gitignore"
- - "**/.gitattributes"
- "**/.editorconfig"
- .github/**
branches: