mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
feat: build Win32 using Actions (#2)
This commit is contained in:
parent
dc9f464f84
commit
d37022c9f4
4 changed files with 33 additions and 6 deletions
33
.github/workflows/win.yml
vendored
33
.github/workflows/win.yml
vendored
|
@ -1,6 +1,7 @@
|
||||||
name: Windows.
|
name: Windows.
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
|
@ -46,10 +47,10 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
arch: [Win32, x64]
|
arch: [Win32]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
UPLOAD_ARTIFACT: "false"
|
UPLOAD_ARTIFACT: "true"
|
||||||
ONLY_CACHE: "false"
|
ONLY_CACHE: "false"
|
||||||
PREPARE_PATH: "Telegram/build/prepare/prepare.py"
|
PREPARE_PATH: "Telegram/build/prepare/prepare.py"
|
||||||
|
|
||||||
|
@ -156,10 +157,36 @@ jobs:
|
||||||
if: (env.UPLOAD_ARTIFACT == 'true') || ${{ github.ref == 'refs/heads/nightly' }}
|
if: (env.UPLOAD_ARTIFACT == 'true') || ${{ github.ref == 'refs/heads/nightly' }}
|
||||||
run: |
|
run: |
|
||||||
mkdir artifact
|
mkdir artifact
|
||||||
move %TBUILD%\%REPO_NAME%\out\Debug\Telegram.exe artifact/
|
move %TBUILD%\%REPO_NAME%\out\Debug\AyuGram.exe artifact/
|
||||||
- uses: actions/upload-artifact@master
|
- uses: actions/upload-artifact@master
|
||||||
name: Upload artifact.
|
name: Upload artifact.
|
||||||
if: (env.UPLOAD_ARTIFACT == 'true') || ${{ github.ref == 'refs/heads/nightly' }}
|
if: (env.UPLOAD_ARTIFACT == 'true') || ${{ github.ref == 'refs/heads/nightly' }}
|
||||||
with:
|
with:
|
||||||
name: ${{ env.ARTIFACT_NAME }}
|
name: ${{ env.ARTIFACT_NAME }}
|
||||||
path: artifact\
|
path: artifact\
|
||||||
|
|
||||||
|
release:
|
||||||
|
name: Release
|
||||||
|
needs: [windows]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: true
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Merge Releases
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: Telegram_Win32
|
||||||
|
path: artifact
|
||||||
|
|
||||||
|
- name: Upload release
|
||||||
|
uses: Hs1r1us/Release-AIO@v1.0
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
# The name of the tag
|
||||||
|
tag_name: prelease-${{ github.run_number }}
|
||||||
|
prerelease: true
|
||||||
|
release_name: Ayugram CI
|
||||||
|
asset_files: './artifact'
|
||||||
|
|
|
@ -106,7 +106,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include <QtWidgets/QApplication>
|
#include <QtWidgets/QApplication>
|
||||||
#include <QtCore/QMimeData>
|
#include <QtCore/QMimeData>
|
||||||
|
|
||||||
#include "ayu/context_menu/context_menu.h"
|
#include "ayu/ui/context_menu/context_menu.h"
|
||||||
#include "styles/style_ayu_icons.h"
|
#include "styles/style_ayu_icons.h"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
|
@ -75,7 +75,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
|
|
||||||
#include "ayu/ayu_settings.h"
|
#include "ayu/ayu_settings.h"
|
||||||
#include "ayu/database/ayu_database.h"
|
#include "ayu/database/ayu_database.h"
|
||||||
#include "ayu/context_menu/message_history_box.h"
|
#include "ayu/ui/context_menu/message_history_box.h"
|
||||||
|
|
||||||
namespace HistoryView {
|
namespace HistoryView {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
|
@ -68,7 +68,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include <QtGui/QClipboard>
|
#include <QtGui/QClipboard>
|
||||||
#include <QtGui/QWindow>
|
#include <QtGui/QWindow>
|
||||||
|
|
||||||
#include "ayu/settings/settings_ayu.h"
|
#include "ayu/ui/settings/settings_ayu.h"
|
||||||
|
|
||||||
namespace Settings {
|
namespace Settings {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
Loading…
Add table
Reference in a new issue