Skip to content

Commit 54d2721

Browse files
committed
Drop Ubuntu 20.04 support
1 parent 9ed063a commit 54d2721

File tree

5 files changed

+6
-161
lines changed

5 files changed

+6
-161
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -13,38 +13,6 @@ on:
1313
- cron: 0 0 * * 1
1414
workflow_dispatch:
1515
jobs:
16-
build-ubuntu-20-04-x86-64:
17-
runs-on: ubuntu-20.04
18-
steps:
19-
- name: Checkout
20-
uses: actions/checkout@v4
21-
with:
22-
submodules: true
23-
- name: Generate cache key
24-
shell: pwsh
25-
run: ./common/Test-UpToDate.ps1 -GenerateCacheKey
26-
- name: Cache artifacts
27-
uses: actions/cache@v4
28-
with:
29-
key: ubuntu-20.04.x86-64.${{ hashFiles('.github/cache-key.json') }}
30-
path: artifacts
31-
- name: Install
32-
shell: pwsh
33-
run: ./linux/install.ps1 -ForBuild
34-
- name: Build
35-
shell: pwsh
36-
run: ./linux/build.ps1
37-
- name: Prepare artifact
38-
shell: pwsh
39-
run: ./linux/prepare-artifacts.ps1
40-
- name: 'Prepare artifact: verify produced file'
41-
shell: pwsh
42-
run: if (!(Test-Path -LiteralPath 'artifacts/libtdjson.so')) { throw 'File not found' }
43-
- name: Upload build result
44-
uses: actions/upload-artifact@v4
45-
with:
46-
name: tdlib.native.ubuntu-20.04.x86-64
47-
path: artifacts/*
4816
build-ubuntu-22-04-x86-64:
4917
runs-on: ubuntu-22.04
5018
steps:
@@ -170,46 +138,6 @@ jobs:
170138
with:
171139
name: tdlib.native.windows.x86-64
172140
path: artifacts/*
173-
test-ubuntu-20-04-x86-64:
174-
needs:
175-
- build-ubuntu-20-04-x86-64
176-
runs-on: ubuntu-20.04
177-
env:
178-
DOTNET_CLI_TELEMETRY_OPTOUT: 1
179-
DOTNET_NOLOGO: 1
180-
NUGET_PACKAGES: ${{ github.workspace }}/.github/nuget-packages
181-
PACKAGE_VERSION_BASE: 1.8.45
182-
steps:
183-
- name: Checkout
184-
uses: actions/checkout@v4
185-
with:
186-
submodules: true
187-
- name: Install
188-
shell: pwsh
189-
run: ./linux/install.ps1 -ForTests
190-
- name: 'Download artifact: ubuntu-20.04.x86-64'
191-
uses: actions/download-artifact@v4
192-
with:
193-
name: tdlib.native.ubuntu-20.04.x86-64
194-
path: build/tdlib.native.ubuntu-20.04-x64/runtimes/linux-x64/native
195-
- name: Verify library dependencies
196-
shell: pwsh
197-
run: ./linux/Test-Dependencies.ps1 -Platform ubuntu-20.04 -PackageName tdlib.native.ubuntu-20.04-x64
198-
- name: Set up .NET SDK
199-
uses: actions/setup-dotnet@v4
200-
with:
201-
dotnet-version: 7.0.x
202-
- name: Pack NuGet
203-
shell: pwsh
204-
run: dotnet pack tdlib.native.ubuntu-20.04-x64.proj -p:Version=${{ env.PACKAGE_VERSION_BASE }}-test --output build
205-
- name: NuGet cache
206-
uses: actions/cache@v4
207-
with:
208-
key: ${{ runner.os }}.nuget.${{ hashFiles('tdsharp/**/*.csproj') }}
209-
path: ${{ env.NUGET_PACKAGES }}
210-
- name: Test
211-
shell: pwsh
212-
run: ./common/test.ps1 -PackageName tdlib.native.ubuntu-20.04-x64 -NuGet $env:GITHUB_WORKSPACE/tools/nuget.exe -UseMono
213141
test-ubuntu-22-04-x86-64:
214142
needs:
215143
- build-ubuntu-22-04-x86-64
@@ -371,7 +299,6 @@ jobs:
371299
run: ./common/test.ps1 -PackageName tdlib.native.win-x64 -NuGet nuget
372300
release:
373301
needs:
374-
- build-ubuntu-20-04-x86-64
375302
- build-ubuntu-22-04-x86-64
376303
- build-macos-aarch64
377304
- build-macos-x86-64
@@ -384,14 +311,6 @@ jobs:
384311
PACKAGE_VERSION_BASE: 1.8.45
385312
steps:
386313
- uses: actions/checkout@v4
387-
- name: 'Download artifact: ubuntu-20.04.x86-64'
388-
uses: actions/download-artifact@v4
389-
with:
390-
name: tdlib.native.ubuntu-20.04.x86-64
391-
path: build/tdlib.native.ubuntu-20.04-x64/runtimes/linux-x64/native
392-
- name: 'Archive artifact for platform: ubuntu-20.04.x86-64'
393-
shell: pwsh
394-
run: Set-Location build/tdlib.native.ubuntu-20.04-x64/runtimes/linux-x64/native && zip -r $env:GITHUB_WORKSPACE/tdlib.native.ubuntu-20.04.x86-64.zip *
395314
- name: 'Download artifact: ubuntu-22.04.x86-64'
396315
uses: actions/download-artifact@v4
397316
with:
@@ -438,9 +357,6 @@ jobs:
438357
format: Markdown
439358
input: ./CHANGELOG.md
440359
output: release-notes.md
441-
- name: 'Pack NuGet package: ubuntu-20.04.x86-64'
442-
shell: pwsh
443-
run: dotnet pack tdlib.native.ubuntu-20.04-x64.proj -p:Version=${{ steps.version.outputs.version }} --output build
444360
- name: 'Pack NuGet package: ubuntu-22.04.x86-64'
445361
shell: pwsh
446362
run: dotnet pack tdlib.native.linux-x64.proj -p:Version=${{ steps.version.outputs.version }} --output build
@@ -477,16 +393,6 @@ jobs:
477393
tag_name: ${{ github.ref }}
478394
env:
479395
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
480-
- if: startsWith(github.ref, 'refs/tags/v')
481-
name: 'Upload archive: ubuntu-20.04.x86-64'
482-
uses: actions/upload-release-asset@v1
483-
with:
484-
asset_content_type: application/zip
485-
asset_name: tdlib.native.ubuntu-20.04.x86-64.zip
486-
asset_path: ./tdlib.native.ubuntu-20.04.x86-64.zip
487-
upload_url: ${{ steps.release.outputs.upload_url }}
488-
env:
489-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
490396
- if: startsWith(github.ref, 'refs/tags/v')
491397
name: 'Upload archive: ubuntu-22.04.x86-64'
492398
uses: actions/upload-release-asset@v1
@@ -527,16 +433,6 @@ jobs:
527433
upload_url: ${{ steps.release.outputs.upload_url }}
528434
env:
529435
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
530-
- if: startsWith(github.ref, 'refs/tags/v')
531-
name: 'Upload NuGet package: tdlib.native.ubuntu-20.04-x64.${{ steps.version.outputs.version }}.nupkg'
532-
uses: actions/upload-release-asset@v1
533-
with:
534-
asset_content_type: application/zip
535-
asset_name: tdlib.native.ubuntu-20.04-x64.${{ steps.version.outputs.version }}.nupkg
536-
asset_path: ./build/tdlib.native.ubuntu-20.04-x64.${{ steps.version.outputs.version }}.nupkg
537-
upload_url: ${{ steps.release.outputs.upload_url }}
538-
env:
539-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
540436
- if: startsWith(github.ref, 'refs/tags/v')
541437
name: 'Upload NuGet package: tdlib.native.linux-x64.${{ steps.version.outputs.version }}.nupkg'
542438
uses: actions/upload-release-asset@v1
@@ -587,9 +483,6 @@ jobs:
587483
upload_url: ${{ steps.release.outputs.upload_url }}
588484
env:
589485
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
590-
- if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
591-
name: Push tdlib.native.ubuntu-20.04-x64.${{ steps.version.outputs.version }} to nuget.org
592-
run: dotnet nuget push --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }} ./build/tdlib.native.ubuntu-20.04-x64.${{ steps.version.outputs.version }}.nupkg
593486
- if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
594487
name: Push tdlib.native.linux-x64.${{ steps.version.outputs.version }} to nuget.org
595488
run: dotnet nuget push --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }} ./build/tdlib.native.linux-x64.${{ steps.version.outputs.version }}.nupkg

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55

66
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
77

8+
## [Unreleased]
9+
### Removed
10+
- **(Breaking change!)** The package for Ubuntu 20.04 (OpenSSL v1.1) is no longer maintained nor updated (because [the corresponding GitHub runner is no longer available](https://github.com/actions/runner-images/issues/11101)).
11+
812
## [1.8.45] - 2025-02-14
913
### Changed
1014
- We switched the builds for x86-64 macOS to macOS 13 image (from macOS 11).

README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ This is a project to pack [TDLib][tdlib] (the Telegram Database library) binarie
55

66
- [MacOS 13][spec.macos-13] (x86-64) _(GitHub Actions image: `macos-13`)_
77
- [MacOS 14][spec.macos-14] (AArch64) _(GitHub Actions image: `macos-14`)_
8-
- [Ubuntu 20.04][spec.ubuntu-20.04] (x86-64) _(GitHub Actions image: `ubuntu-20.04`)_
98
- [Ubuntu 22.04][spec.ubuntu-22.04] (x86-64) _(GitHub Actions image: `ubuntu-22.04`)_
109
- [Windows Server 2019][spec.windows] (x86-64) _(GitHub Actions image: `windows-2019`)_
1110

@@ -18,14 +17,13 @@ Getting Started
1817

1918
| Platform | Package |
2019
|-----------------------------|--------------------------------------------------------------------------------------|
21-
| Linux x86-64 (Ubuntu 20.04) | [![NuGet][badge.tdlib.native.ubuntu-20.04-x64]][nuget.tdlib.native.ubuntu-20.04-x64] |
2220
| Linux x86-64 (Ubuntu 22.04) | [![NuGet][badge.tdlib.native.linux-x64]][nuget.tdlib.native.linux-x64] |
2321
| Windows x86-64 | [![NuGet][badge.tdlib.native.win-x64]][nuget.tdlib.native.win-x64] |
2422
| macOS AArch64 | [![NuGet][badge.tdlib.native.osx-arm64]][nuget.tdlib.native.osx-arm64] |
2523
| macOS x86-64 | [![NuGet][badge.tdlib.native.osx-x64]][nuget.tdlib.native.osx-x64] |
2624
| **All** | [![NuGet][badge.tdlib.native]][nuget.tdlib.native] |
2725

28-
**tdlib.native** package depends on latest versions of each other platform (i.e. all except the obsolete **Ubuntu 20.04**), so the resulting application will work on any supported platform.
26+
The **tdlib.native** package depends on the latest versions of each platform, so the resulting application will work on any supported platform.
2927

3028
- Download the latest binaries from the [Releases][releases] section
3129

@@ -37,8 +35,6 @@ Library Dependencies
3735
--------------------
3836
This package doesn't bundle certain dependencies, and they are expected to be provided by the user's environment.
3937

40-
On **Ubuntu 20.04**, the TDLib version provided by tdlib.native is compiled against OpenSSL 1.1.
41-
4238
On **Ubuntu 22.04**, the TDLib version provided by tdlib.native is compiled against OpenSSL 3.0.
4339

4440
On **macOS**, the TDLib version provided by tdlib.native is compiled against OpenSSL 3.0.
@@ -54,7 +50,6 @@ Documentation
5450
- [Maintainership][docs.maintainership]
5551

5652
[badge.tdlib.native.linux-x64]: https://img.shields.io/nuget/v/tdlib.native.linux-x64?label=tdlib.native.linux-x64
57-
[badge.tdlib.native.ubuntu-20.04-x64]: https://img.shields.io/nuget/v/tdlib.native.ubuntu-20.04-x64?label=tdlib.native.ubuntu-20.04-x64
5853
[badge.tdlib.native.osx-arm64]: https://img.shields.io/nuget/v/tdlib.native.osx-arm64?label=tdlib.native.osx-arm64
5954
[badge.tdlib.native.osx-x64]: https://img.shields.io/nuget/v/tdlib.native.osx-x64?label=tdlib.native.osx-x64
6055
[badge.tdlib.native.win-x64]: https://img.shields.io/nuget/v/tdlib.native.win-x64?label=tdlib.native.win-x64
@@ -65,13 +60,11 @@ Documentation
6560
[docs.license]: ./LICENSE_1_0.txt
6661
[docs.maintainership]: ./MAINTAINERSHIP.md
6762
[nuget.tdlib.native.linux-x64]: https://www.nuget.org/packages/tdlib.native.linux-x64/
68-
[nuget.tdlib.native.ubuntu-20.04-x64]: https://www.nuget.org/packages/tdlib.native.ubuntu-20.04-x64/
6963
[nuget.tdlib.native.osx-arm64]: https://www.nuget.org/packages/tdlib.native.osx-arm64/
7064
[nuget.tdlib.native.osx-x64]: https://www.nuget.org/packages/tdlib.native.osx-x64/
7165
[nuget.tdlib.native.win-x64]: https://www.nuget.org/packages/tdlib.native.win-x64/
7266
[nuget.tdlib.native]: https://www.nuget.org/packages/tdlib.native/
7367
[releases]: https://github.com/ForNeVeR/tdlib.native/releases
74-
[spec.ubuntu-20.04]: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2004-Readme.md
7568
[spec.ubuntu-22.04]: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md
7669
[spec.macos-13]: https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md
7770
[spec.macos-14]: https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md

github-actions.fsx

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ let mainBranch = "master"
1212

1313
let macOs13 = "macos-13"
1414
let macOs14 = "macos-14"
15-
let ubuntu20_04 = "ubuntu-20.04"
1615
let ubuntu22_04 = "ubuntu-22.04"
1716
let ubuntuLatest = "ubuntu-latest"
1817
let windows2019 = "windows-2019"
@@ -35,7 +34,6 @@ let checkoutWithSubmodules = step(name = "Checkout", uses = "actions/checkout@v4
3534
])
3635

3736
module Platform =
38-
let [<Literal>] Ubuntu20_04 = "ubuntu-20.04"
3937
let [<Literal>] Ubuntu22_04 = "ubuntu-22.04"
4038
let [<Literal>] MacOS = "macos"
4139
let [<Literal>] Windows = "windows"
@@ -46,7 +44,6 @@ module Arch =
4644

4745
module Names =
4846
let private platformToDotNet = function
49-
| Platform.Ubuntu20_04 -> "linux"
5047
| Platform.Ubuntu22_04 -> "linux"
5148
| Platform.MacOS -> "osx"
5249
| Platform.Windows -> "win"
@@ -58,12 +55,7 @@ module Names =
5855
| other -> failwith $"Unknown architecture {other}"
5956

6057
let package platform arch =
61-
let platformPart =
62-
match platform with
63-
| Platform.Ubuntu20_04 -> "ubuntu-20.04"
64-
| other -> platformToDotNet other
65-
66-
$"tdlib.native.{platformPart}-{archToDotNet arch}"
58+
$"tdlib.native.{platformToDotNet platform}-{archToDotNet arch}"
6759

6860
let ciArtifact platform arch = $"tdlib.native.{platform}.{arch}"
6961
let packageInputDirectory platform arch =
@@ -72,7 +64,6 @@ module Names =
7264
let buildJob (platform: string) arch = $"build-{platform.Replace('.', '-')}-{arch}"
7365
let testJob (platform: string) arch = $"test-{platform.Replace('.', '-')}-{arch}"
7466
let os = function
75-
| Platform.Ubuntu20_04 -> "linux"
7667
| Platform.Ubuntu22_04 -> "linux"
7768
| Platform.MacOS -> "macos"
7869
| Platform.Windows -> "windows"
@@ -193,14 +184,6 @@ let workflows = [
193184
onSchedule(day = DayOfWeek.Monday)
194185
onWorkflowDispatch
195186

196-
Workflows.BuildJob(
197-
image = ubuntu20_04,
198-
platform = Platform.Ubuntu20_04,
199-
arch = Arch.X86_64,
200-
installScript = "./linux/install.ps1 -ForBuild",
201-
artifactFileName = "libtdjson.so"
202-
)
203-
204187
Workflows.BuildJob(
205188
image = ubuntu22_04,
206189
platform = Platform.Ubuntu22_04,
@@ -248,17 +231,6 @@ let workflows = [
248231
$" -PackageName {Names.package platform arch}"
249232
)
250233

251-
Workflows.TestJob(
252-
image = ubuntu20_04,
253-
platform = Platform.Ubuntu20_04,
254-
arch = Arch.X86_64,
255-
installScript = "./linux/install.ps1 -ForTests",
256-
testArgs = "-NuGet $env:GITHUB_WORKSPACE/tools/nuget.exe -UseMono",
257-
afterDownloadSteps = [
258-
testLinuxDependencies Platform.Ubuntu20_04 Arch.X86_64
259-
]
260-
)
261-
262234
Workflows.TestJob(
263235
image = ubuntu22_04,
264236
platform = Platform.Ubuntu22_04,
@@ -315,7 +287,6 @@ let workflows = [
315287
job "release" [
316288
runsOn ubuntuLatest
317289
yield! [
318-
Names.buildJob Platform.Ubuntu20_04 Arch.X86_64
319290
Names.buildJob Platform.Ubuntu22_04 Arch.X86_64
320291
Names.buildJob Platform.MacOS Arch.AArch64
321292
Names.buildJob Platform.MacOS Arch.X86_64
@@ -325,7 +296,6 @@ let workflows = [
325296
yield! testEnv
326297
checkout
327298

328-
yield! downloadAndRepackArtifact Platform.Ubuntu20_04 Arch.X86_64
329299
yield! downloadAndRepackArtifact Platform.Ubuntu22_04 Arch.X86_64
330300
yield! downloadAndRepackArtifact Platform.MacOS Arch.AArch64
331301
yield! downloadAndRepackArtifact Platform.MacOS Arch.X86_64
@@ -358,7 +328,6 @@ let workflows = [
358328
" -p:Version=${{ steps.version.outputs.version }} --output build"
359329
)
360330

361-
packPackageFor Platform.Ubuntu20_04 Arch.X86_64
362331
packPackageFor Platform.Ubuntu22_04 Arch.X86_64
363332
packPackageFor Platform.MacOS Arch.AArch64
364333
packPackageFor Platform.MacOS Arch.X86_64
@@ -407,7 +376,6 @@ let workflows = [
407376
]
408377
)
409378

410-
uploadArchive Platform.Ubuntu20_04 Arch.X86_64
411379
uploadArchive Platform.Ubuntu22_04 Arch.X86_64
412380
uploadArchive Platform.MacOS Arch.AArch64
413381
uploadArchive Platform.MacOS Arch.X86_64
@@ -433,7 +401,6 @@ let workflows = [
433401
$"{Names.package platform arch}." + "${{ steps.version.outputs.version }}.nupkg"
434402
)
435403

436-
uploadPlatformPackage Platform.Ubuntu20_04 Arch.X86_64
437404
uploadPlatformPackage Platform.Ubuntu22_04 Arch.X86_64
438405
uploadPlatformPackage Platform.MacOS Arch.AArch64
439406
uploadPlatformPackage Platform.MacOS Arch.X86_64
@@ -455,7 +422,6 @@ let workflows = [
455422
$"{Names.package platform arch}." + "${{ steps.version.outputs.version }}.nupkg"
456423
)
457424

458-
pushPlatformPackage Platform.Ubuntu20_04 Arch.X86_64
459425
pushPlatformPackage Platform.Ubuntu22_04 Arch.X86_64
460426
pushPlatformPackage Platform.MacOS Arch.AArch64
461427
pushPlatformPackage Platform.MacOS Arch.X86_64

tdlib.native.ubuntu-20.04-x64.proj

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)