Skip to content

Commit

Permalink
github action #26
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefvand committed Oct 19, 2024
1 parent d707e01 commit ed7cc90
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,22 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

# Qt caching setup for Windows
### Ubuntu Dependencies (Unchanged)
- name: Install dependencies (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y ninja-build qt6-base-dev qt6-base-dev-tools libgl1-mesa-dev libglu1-mesa-dev
echo "CMAKE_PREFIX_PATH=/usr/lib/x86_64-linux-gnu/cmake/Qt6" >> $GITHUB_ENV
### macOS Dependencies (Unchanged)
- name: Install dependencies (macOS)
if: matrix.os == 'macos-latest'
run: |
brew install ninja qt
echo "CMAKE_PREFIX_PATH=$(brew --prefix qt)" >> $GITHUB_ENV
### Windows Setup with Qt Caching
- name: Restore Qt cache (Windows)
if: matrix.os == 'windows-latest'
uses: actions/cache@v3
Expand All @@ -54,15 +69,13 @@ jobs:
'--silent', '--platform minimal', '--accept-licenses', `
'--select qt.qt6.653.win64_msvc2019_64', '--no-force-installations'
# Caching Qt on first successful installation
- name: Save Qt cache (Windows)
if: matrix.os == 'windows-latest' && steps.restore.outputs.cache-hit != 'true'
uses: actions/cache@v3
with:
path: C:\Qt
key: qt-windows-6.5.3

# Set up MSVC environment
- name: Set up MSVC environment (Windows)
if: matrix.os == 'windows-latest'
shell: cmd
Expand Down

0 comments on commit ed7cc90

Please sign in to comment.