chore: fix workflows and build now that model files are not in the repository
This commit is contained in:
@@ -19,7 +19,6 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
lfs: true
|
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.ACTIONS_PAT }}
|
token: ${{ secrets.ACTIONS_PAT }}
|
||||||
- name: Setup .NET 9
|
- name: Setup .NET 9
|
||||||
@@ -59,7 +58,6 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
lfs: true
|
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
token: ${{ secrets.ACTIONS_PAT }}
|
token: ${{ secrets.ACTIONS_PAT }}
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
lfs: true
|
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.ACTIONS_PAT }}
|
token: ${{ secrets.ACTIONS_PAT }}
|
||||||
- name: Setup .NET
|
- name: Setup .NET
|
||||||
@@ -53,7 +52,6 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
lfs: true
|
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.ACTIONS_PAT }}
|
token: ${{ secrets.ACTIONS_PAT }}
|
||||||
- name: Setup .NET 9
|
- name: Setup .NET 9
|
||||||
@@ -83,7 +81,6 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
lfs: true
|
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.ACTIONS_PAT }}
|
token: ${{ secrets.ACTIONS_PAT }}
|
||||||
- name: Download ubuntu-latest report
|
- name: Download ubuntu-latest report
|
||||||
|
|||||||
@@ -12,6 +12,31 @@
|
|||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<DownloadDirectory>Resources\Files</DownloadDirectory>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<Target Name="DownloadModels" BeforeTargets="PrepareForBuild">
|
||||||
|
<Message Text="Downloading models..." Importance="high" />
|
||||||
|
|
||||||
|
<MakeDir Directories="$(DownloadDirectory)" Condition="!Exists('$(DownloadDirectory)')" />
|
||||||
|
|
||||||
|
<Exec
|
||||||
|
Condition="!Exists('$(DownloadDirectory)\rmbg.onnx')"
|
||||||
|
Command="curl -L "https://share.stevanfreeborn.com/bgr/rmbg.onnx" -o "$(DownloadDirectory)\rmbg.onnx""
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Exec
|
||||||
|
Condition="!Exists('$(DownloadDirectory)\u2net.onnx')"
|
||||||
|
Command="curl -L "https://share.stevanfreeborn.com/bgr/u2net.onnx" -o "$(DownloadDirectory)\u2net.onnx""
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Exec
|
||||||
|
Condition="!Exists('$(DownloadDirectory)\modnet.onnx')"
|
||||||
|
Command="curl -L "https://share.stevanfreeborn.com/bgr/modnet.onnx" -o "$(DownloadDirectory)\modnet.onnx""
|
||||||
|
/>
|
||||||
|
</Target>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<InternalsVisibleTo Include="$(AssemblyName).Tests" />
|
<InternalsVisibleTo Include="$(AssemblyName).Tests" />
|
||||||
<InternalsVisibleTo Include="DynamicProxyGenAssembly2" />
|
<InternalsVisibleTo Include="DynamicProxyGenAssembly2" />
|
||||||
|
|||||||
Reference in New Issue
Block a user