Skip to content

Commit

Permalink
fix win build
Browse files Browse the repository at this point in the history
  • Loading branch information
xmdnx committed Dec 5, 2023
1 parent f8e55a7 commit 36d9b4c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,14 @@ jobs:

env:
UPLOAD_ARTIFACT: "true"
ARTIFACT_NAME: "rabbitGram"
ONLY_CACHE: "false"
PREPARE_PATH: "Telegram/build/prepare/prepare.py"

defaults:
run:
shell: cmd

steps:

steps:
- name: Disk Space Optimizer
uses: hugoalh/[email protected]

Expand Down Expand Up @@ -119,7 +117,7 @@ jobs:
- name: Read configuration matrix.
shell: bash
run: |
ARTIFACT_NAME="Telegram"
ARTIFACT_NAME="rabbitGram"
ARCH=""
if [ -n "${{ matrix.arch }}" ]; then
Expand Down Expand Up @@ -150,7 +148,7 @@ jobs:
fi
echo "TDESKTOP_BUILD_DEFINE=$DEFINE" >> $GITHUB_ENV
API=""
echo "ARTIFACT_NAME=$ARTIFACT_NAME" >> $GITHUB_ENV
API="-D TDESKTOP_API_ID=${{ secrets.API_ID }} -D TDESKTOP_API_HASH=${{ secrets.API_HASH }}"
echo "TDESKTOP_BUILD_API=$API" >> $GITHUB_ENV
Expand All @@ -174,16 +172,16 @@ jobs:
-D DESKTOP_APP_NO_PDB=ON ^
%TDESKTOP_BUILD_DEFINE%
cmake --build ..\out --config Debug --parallel
cmake --build ..\out --config Release --parallel
- name: Move artifact.
if: (env.UPLOAD_ARTIFACT == 'true') || (github.ref == 'refs/heads/nightly')
run: |
mkdir artifact
move %TBUILD%\%REPO_NAME%\out\Debug\rabbitGram.exe artifact/
move %TBUILD%\%REPO_NAME%\out\Release\rabbitGram.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\
path: artifact\

0 comments on commit 36d9b4c

Please sign in to comment.