Skip to content

Commit

Permalink
release #40
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefvand committed Nov 29, 2024
1 parent c3eafe3 commit 6b8ee12
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ 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 @@ -56,7 +53,7 @@ jobs:
rsync -a "$BUILD_DIR/" "$TEMP_DIR/"
cd $TEMP_DIR
tar -czvf application.tar.gz ./*
# macOS Section
- name: Install dependencies (macOS)
if: matrix.os == 'macos-latest'
Expand All @@ -78,29 +75,24 @@ jobs:
cd "${{ github.workspace }}/build"
hdiutil create -volname Application -srcfolder . -ov -format UDZO application.dmg
zip application.zip application.dmg
# Windows Section
- name: Install dependencies (Windows)
if: matrix.os == 'windows-latest'
run: |
choco install visualstudio2022buildtools -y --install-arguments \
'--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended --quiet --norestart'
choco install qt --version=6.5.3 -y
choco install ninja -y
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' -y
choco install visualstudio2022buildtools --force -y --install-arguments \
'--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended --quiet --norestart'
shell: cmd
- name: Verify Visual Studio Installation
if: matrix.os == 'windows-latest'
run: |
$vcvarsPath = "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
if (!(Test-Path $vcvarsPath)) {
Write-Output "Visual Studio Build Tools not found at $vcvarsPath. Reinstalling..."
choco install visualstudio2022buildtools -y --install-arguments \
'--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended --quiet --norestart'
if (!(Test-Path $vcvarsPath)) {
Write-Output "Failed to install Visual Studio Build Tools."
exit 1
}
Write-Output "Visual Studio Build Tools not found at $vcvarsPath. Installation failed."
exit 1
} else {
Write-Output "Found Visual Studio Build Tools at $vcvarsPath"
}
Expand Down

0 comments on commit 6b8ee12

Please sign in to comment.