Update windows.yml
This commit is contained in:
@@ -9,6 +9,9 @@ jobs:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
VCPKG_DEFAULT_TRIPLET: x64-windows
|
VCPKG_DEFAULT_TRIPLET: x64-windows
|
||||||
|
# Pin VCPKG_ROOT to the runner's pre-installed copy to suppress
|
||||||
|
# the mismatch warning with the VS-bundled vcpkg path.
|
||||||
|
VCPKG_ROOT: C:\vcpkg
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# ── 1. Checkout Fritzing source ──────────────────────────────────────
|
# ── 1. Checkout Fritzing source ──────────────────────────────────────
|
||||||
@@ -30,31 +33,37 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
# ── 3. Install Qt 6.7.3 (latest LTS at time of writing) ─────────────
|
# ── 3. Install Qt 6.5.10 (max version allowed by phoenix.pro) ───────
|
||||||
# Arch label for MSVC 2022 / 2019 64-bit is identical
|
# Arch label for MSVC 2022 / 2019 64-bit is identical
|
||||||
- name: Install Qt
|
- name: Install Qt
|
||||||
uses: jurplel/install-qt-action@v4
|
uses: jurplel/install-qt-action@v4
|
||||||
with:
|
with:
|
||||||
version: '6.7.3'
|
version: '6.5.10'
|
||||||
host: 'windows'
|
host: 'windows'
|
||||||
target: 'desktop'
|
target: 'desktop'
|
||||||
arch: 'win64_msvc2019_64'
|
arch: 'win64_msvc2019_64'
|
||||||
modules: 'qt5compat'
|
modules: 'qt5compat'
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
# ── 4. Install C++ dependencies via vcpkg ────────────────────────────
|
# ── 4. Cache vcpkg installed packages ────────────────────────────────
|
||||||
# vcpkg is pre-installed on windows-2022 runners.
|
# Caches the installed/ directory so subsequent runs skip
|
||||||
# boost headers-only, libgit2-static, quazip, openssl
|
# downloading and compiling all C++ dependencies.
|
||||||
|
- name: Cache vcpkg packages
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: C:\vcpkg\installed
|
||||||
|
key: vcpkg-x64-windows-${{ hashFiles('**/build-windows.yml') }}
|
||||||
|
restore-keys: |
|
||||||
|
vcpkg-x64-windows-
|
||||||
|
|
||||||
|
# ── 5. Install C++ dependencies via vcpkg ───────────────────────────
|
||||||
- name: Install dependencies with vcpkg
|
- name: Install dependencies with vcpkg
|
||||||
run: |
|
run: |
|
||||||
vcpkg install boost-filesystem boost-optional boost-assign `
|
vcpkg install boost-filesystem boost-optional boost-assign `
|
||||||
libgit2 quazip openssl `
|
libgit2 quazip openssl `
|
||||||
--triplet x64-windows
|
--triplet x64-windows
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
# ── 5. Build libgit2 (vcpkg already handles this, kept for reference) ─
|
|
||||||
# libgit2 from vcpkg is at the latest stable release automatically.
|
|
||||||
|
|
||||||
# ── 6. Configure and build Fritzing ─────────────────────────────────
|
# ── 6. Configure and build Fritzing ─────────────────────────────────
|
||||||
- name: Configure Fritzing (qmake)
|
- name: Configure Fritzing (qmake)
|
||||||
working-directory: fritzing-app
|
working-directory: fritzing-app
|
||||||
|
|||||||
Reference in New Issue
Block a user