Skip to content

Commit 244cc65

Browse files
committed
Update to dotnet 10
1 parent 40a80d5 commit 244cc65

6 files changed

Lines changed: 17 additions & 18 deletions

File tree

.github/workflows/publish-artifacts.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
with:
1515
fetch-depth: 0
1616

17-
- name: Setup .NET Core SDK 8.0.x
17+
- name: Setup .NET Core SDK 10.0.x
1818
uses: actions/setup-dotnet@v5
1919
with:
20-
dotnet-version: 8.0.x
20+
dotnet-version: 10.0.x
2121

2222
- name: Install dependencies
2323
run: dotnet restore
@@ -26,31 +26,31 @@ jobs:
2626
run: dotnet publish -c Release
2727

2828
- name: Zip dotnet release
29-
run: zip release-${{ github.ref_name }}-dotnet.zip bin/Release/net8.0/publish/*
29+
run: zip release-${{ github.ref_name }}-dotnet.zip bin/Release/net10.0/publish/*
3030

3131
- name: Build linux x64
3232
run: dotnet publish -c Release -r linux-x64 --self-contained
3333

3434
- name: Zip linux-64 release
35-
run: zip release-${{ github.ref_name }}-linux-gnu.zip bin/Release/net8.0/linux-x64/publish/*
35+
run: zip release-${{ github.ref_name }}-linux-gnu.zip bin/Release/net10.0/linux-x64/publish/*
3636

3737
- name: Build linux musl
3838
run: dotnet publish -c Release -r linux-musl-x64 --self-contained
3939

4040
- name: Zip linux-musl-x64 release
41-
run: zip release-${{ github.ref_name }}-linux-musl.zip bin/Release/net8.0/linux-musl-x64/publish/*
41+
run: zip release-${{ github.ref_name }}-linux-musl.zip bin/Release/net10.0/linux-musl-x64/publish/*
4242

4343
- name: Build win x64
4444
run: dotnet publish -c Release -r win-x64 --self-contained
4545

4646
- name: Zip win-x64 release
47-
run: zip release-${{ github.ref_name }}-win.zip bin/Release/net8.0/win-x64/publish/*
47+
run: zip release-${{ github.ref_name }}-win.zip bin/Release/net10.0/win-x64/publish/*
4848

4949
- name: Build osx x64
5050
run: dotnet publish -c Release -r osx-x64 --self-contained
5151

5252
- name: Zip osx-x64 release
53-
run: zip release-${{ github.ref_name }}-osx-x64.zip bin/Release/net8.0/osx-x64/publish/*
53+
run: zip release-${{ github.ref_name }}-osx-x64.zip bin/Release/net10.0/osx-x64/publish/*
5454

5555
- name: Release
5656
uses: softprops/action-gh-release@v2

.github/workflows/test-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
with:
1414
fetch-depth: 0
1515

16-
- name: Setup .NET Core SDK 8.0.x
16+
- name: Setup .NET Core SDK 10.0.x
1717
uses: actions/setup-dotnet@v5
1818
with:
19-
dotnet-version: 8.0.x
19+
dotnet-version: 10.0.x
2020

2121
- name: Install dependencies
2222
run: dotnet restore

Abstract/ReceiverServiceBase.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using Telegram.Bot;
22
using Telegram.Bot.Polling;
3-
using Telegram.Bot.Types.Enums;
43

54
namespace TelegramVideoBot.Abstract;
65

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:10.0.103 AS build
1+
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
22
WORKDIR /src
33
COPY TelegramVideoBot.csproj .
44
RUN dotnet restore
@@ -8,8 +8,8 @@ RUN dotnet publish -c Release -o /app --self-contained false
88
FROM linuxserver/ffmpeg AS final
99
WORKDIR /app
1010
COPY --from=build /app .
11-
COPY ./Scripts/install-dotnet8.sh .
12-
RUN bash install-dotnet8.sh
11+
COPY ./Scripts/install-dotnet10.sh .
12+
RUN bash install-dotnet10.sh
1313
RUN python3 -m pip install --force-reinstall --break-system-packages "yt-dlp[default] @ git+https://github.com/yt-dlp/yt-dlp.git@release"
1414
ADD https://deno.land/install.sh install-deno.sh
1515
RUN apt-get update && apt-get install --no-install-recommends -y unzip
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ rm packages-microsoft-prod.deb
2222

2323
# Install
2424
apt-get update -y
25-
apt-get install -y python3-pip git aspnetcore-runtime-8.0
25+
apt-get install -y python3-pip git aspnetcore-runtime-10.0

TelegramVideoBot.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="FFMpegCore" Version="5.2.0" />
11-
<PackageReference Include="Telegram.Bot" Version="22.5.1" />
12-
<PackageReference Include="GitVersion.MsBuild" Version="6.3.0">
10+
<PackageReference Include="FFMpegCore" Version="5.4.0" />
11+
<PackageReference Include="Telegram.Bot" Version="22.9.0" />
12+
<PackageReference Include="GitVersion.MsBuild" Version="6.6.0">
1313
<PrivateAssets>all</PrivateAssets>
1414
</PackageReference>
1515
</ItemGroup>

0 commit comments

Comments
 (0)