Skip to content

Commit

Permalink
release #28
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefvand committed Nov 28, 2024
1 parent bd8cc62 commit 2290748
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ name: Build and Release

on:
push:
branches: [main, dev]
branches:
- main
- dev
pull_request:
branches: [main]
branches:
- main

jobs:
build-and-release:
Expand Down Expand Up @@ -44,16 +47,18 @@ jobs:
- name: Install dependencies (Windows)
if: matrix.os == 'windows-latest'
run: |
choco install visualstudio2022buildtools -y --install-arguments \
'--add Microsoft.VisualStudio.Workload.VCTools --quiet --norestart'
choco install qt --version=6.5.3 -y
choco install ninja -y
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' -y
# Debug and verify environment for Windows
- name: Debug environment paths (Windows)
# Debug and verify Visual Studio paths
- name: Debug Visual Studio paths
if: matrix.os == 'windows-latest'
run: |
echo "Checking Visual Studio paths..."
if exist "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat" (
if exist "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat" (
echo "Found vcvars64.bat"
) else (
echo "vcvars64.bat not found"
Expand All @@ -74,12 +79,12 @@ jobs:
- name: Configure CMake (Windows)
if: matrix.os == 'windows-latest'
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat" && ^
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat" && ^
cmake -B D:\a\Notepad--\Notepad--\build ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_PREFIX_PATH="C:\Qt\6.5.3\msvc2019_64\lib\cmake" ^
-G Ninja ^
-S D:\a\Notepad--\Notepad--
-S D:\a\Notepad--\Notepad--
shell: cmd

# Build Application
Expand Down

0 comments on commit 2290748

Please sign in to comment.