feat: build Win32 using Actions (#2)

This commit is contained in:
Rushi Ranpise 2023-07-04 22:00:23 +05:30 committed by GitHub
parent dc9f464f84
commit d37022c9f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 6 deletions

View file

@ -1,6 +1,7 @@
name: Windows.
on:
workflow_dispatch:
push:
paths-ignore:
- 'docs/**'
@ -46,10 +47,10 @@ jobs:
strategy:
matrix:
arch: [Win32, x64]
arch: [Win32]
env:
UPLOAD_ARTIFACT: "false"
UPLOAD_ARTIFACT: "true"
ONLY_CACHE: "false"
PREPARE_PATH: "Telegram/build/prepare/prepare.py"
@ -156,10 +157,36 @@ jobs:
if: (env.UPLOAD_ARTIFACT == 'true') || ${{ github.ref == 'refs/heads/nightly' }}
run: |
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
name: Upload artifact.
if: (env.UPLOAD_ARTIFACT == 'true') || ${{ github.ref == 'refs/heads/nightly' }}
with:
name: ${{ env.ARTIFACT_NAME }}
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'

View file

@ -106,7 +106,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <QtWidgets/QApplication>
#include <QtCore/QMimeData>
#include "ayu/context_menu/context_menu.h"
#include "ayu/ui/context_menu/context_menu.h"
#include "styles/style_ayu_icons.h"
namespace {

View file

@ -75,7 +75,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ayu/ayu_settings.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 {

View file

@ -68,7 +68,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <QtGui/QClipboard>
#include <QtGui/QWindow>
#include "ayu/settings/settings_ayu.h"
#include "ayu/ui/settings/settings_ayu.h"
namespace Settings {
namespace {