FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
tdesktop/.github/workflows/linux.yml at dev · folkcode/tdesktop · GitHub
folkcode
/
tdesktop
Public
forked from
telegramdesktop/tdesktop
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
tdesktop
/
.github
/
workflows
/
linux.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
125 lines (111 loc) · 3.5 KB
Breadcrumbs
tdesktop
/
.github
/
workflows
/
linux.yml
Copy path
File metadata and controls
125 lines (111 loc) · 3.5 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
name
:
Linux.
on
:
push
:
paths-ignore
:
-
'
docs/**
'
-
'
**.md
'
-
'
changelog.txt
'
-
'
LEGAL
'
-
'
LICENSE
'
-
'
.github/**
'
-
'
!.github/workflows/linux.yml
'
-
'
snap/**
'
-
'
Telegram/build/**
'
-
'
Telegram/Resources/uwp/**
'
-
'
Telegram/Resources/winrc/**
'
-
'
Telegram/SourceFiles/platform/win/**
'
-
'
Telegram/SourceFiles/platform/mac/**
'
-
'
Telegram/Telegram/**
'
-
'
Telegram/configure.bat
'
-
'
Telegram/Telegram.plist
'
pull_request
:
paths-ignore
:
-
'
docs/**
'
-
'
**.md
'
-
'
changelog.txt
'
-
'
LEGAL
'
-
'
LICENSE
'
-
'
.github/**
'
-
'
!.github/workflows/linux.yml
'
-
'
snap/**
'
-
'
Telegram/build/**
'
-
'
Telegram/Resources/uwp/**
'
-
'
Telegram/Resources/winrc/**
'
-
'
Telegram/SourceFiles/platform/win/**
'
-
'
Telegram/SourceFiles/platform/mac/**
'
-
'
Telegram/Telegram/**
'
-
'
Telegram/configure.bat
'
-
'
Telegram/Telegram.plist
'
jobs
:
linux
:
name
:
Rocky Linux 8
runs-on
:
ubuntu-latest
strategy
:
matrix
:
defines
:
-
"
"
-
"
DESKTOP_APP_DISABLE_X11_INTEGRATION
"
-
"
DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION
"
env
:
UPLOAD_ARTIFACT
:
"
false
"
steps
:
-
name
:
Get repository name.
run
:
echo "REPO_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
-
name
:
Clone.
uses
:
actions/checkout@v3.1.0
with
:
submodules
:
recursive
path
:
${{ env.REPO_NAME }}
-
name
:
First set up.
run
:
|
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
docker pull ghcr.io/$GITHUB_REPOSITORY/centos_env
docker tag ghcr.io/$GITHUB_REPOSITORY/centos_env tdesktop:centos_env
-
name
:
Telegram Desktop build.
run
:
|
cd $REPO_NAME
DEFINE=""
if [ -n "${{ matrix.defines }}" ]; then
DEFINE="-D ${{ matrix.defines }}=ON"
echo Define from matrix: $DEFINE
echo "ARTIFACT_NAME=Telegram_${{ matrix.defines }}" >> $GITHUB_ENV
else
echo "ARTIFACT_NAME=Telegram" >> $GITHUB_ENV
fi
docker run --rm \
-v $PWD:/usr/src/tdesktop \
-e CONFIG=Debug \
tdesktop:centos_env \
/usr/src/tdesktop/Telegram/build/docker/centos_env/build.sh \
-D CMAKE_C_FLAGS_DEBUG="" \
-D CMAKE_CXX_FLAGS_DEBUG="" \
-D CMAKE_C_FLAGS="-Werror" \
-D CMAKE_CXX_FLAGS="-Werror" \
-D CMAKE_EXE_LINKER_FLAGS="-s" \
-D TDESKTOP_API_TEST=ON \
-D DESKTOP_APP_DISABLE_AUTOUPDATE=OFF \
-D DESKTOP_APP_DISABLE_CRASH_REPORTS=OFF \
$DEFINE
-
name
:
Check.
run
:
|
filePath="$REPO_NAME/out/Debug/Telegram"
if test -f "$filePath"; then
echo "Build successfully done! :)"
size=$(stat -c %s "$filePath")
echo "File size of ${filePath}: ${size} Bytes."
else
echo "Build error, output file does not exist."
exit 1
fi
-
name
:
Move artifact.
if
:
env.UPLOAD_ARTIFACT == 'true'
run
:
|
cd $REPO_NAME/out/Debug
mkdir artifact
mv {Telegram,Updater} artifact/
-
uses
:
actions/upload-artifact@master
if
:
env.UPLOAD_ARTIFACT == 'true'
name
:
Upload artifact.
with
:
name
:
${{ env.ARTIFACT_NAME }}
path
:
${{ env.REPO_NAME }}/out/Debug/artifact/
Back
|
FazBrowse Home
|
New Git URL