Skip to content

Commit 47c04f9

Browse files
committed
Bump VCPKG registry baseline and update GH action.
1 parent 87b06b1 commit 47c04f9

File tree

5 files changed

+17
-37
lines changed

5 files changed

+17
-37
lines changed

.github/workflows/build-and-test.yml

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,54 +2,34 @@ name: Build & Test Plugin Python
22

33
on:
44
push:
5-
branches: master
5+
branches: [master]
66
pull_request:
77
types: [opened, synchronize, reopened]
88

99
env:
10-
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
10+
VCPKG_BINARY_SOURCES: clear;x-azblob,${{ vars.AZ_BLOB_VCPKG_URL }},${{ secrets.AZ_BLOB_SAS }},readwrite
1111

1212
jobs:
1313
build:
1414
runs-on: windows-2022
1515
steps:
16-
# https://learn.microsoft.com/en-us/vcpkg/consume/binary-caching-github-actions-cache
17-
- name: Export GitHub Actions cache environment variables
18-
uses: actions/github-script@v7
19-
with:
20-
script: |
21-
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
22-
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
23-
2416
- uses: actions/setup-python@v5
2517
with:
2618
python-version: "3.12"
2719

28-
- name: Install Qt
29-
uses: jurplel/install-qt-action@v3
20+
- name: Configure Plugin Python
21+
id: configure-plugin-python
22+
uses: ModOrganizer2/build-with-mob-action@dev/vcpkg
3023
with:
31-
setup-python: false
32-
version: 6.7.1
33-
modules:
34-
cache: true
35-
36-
- uses: actions/checkout@v4
37-
38-
- name: "Set environmental variables"
39-
shell: bash
40-
run: |
41-
echo "VCPKG_ROOT=$VCPKG_INSTALLATION_ROOT" >> $GITHUB_ENV
42-
43-
- name: Configure Plugin Python build
44-
shell: pwsh
45-
run: |
46-
cmake --preset vs2022-windows-standalone `
47-
"-DCMAKE_PREFIX_PATH=${env:QT_ROOT_DIR}\msvc2019_64" `
48-
-DPLUGIN_PYTHON_TESTING=ON
24+
mo2-dependencies: uibase
25+
mo2-skip-build: true
4926

5027
- name: Build Plugin Python
5128
run: cmake --build vsbuild --config RelWithDebInfo --verbose `
5229
--target python-tests --target runner-tests --target proxy
5330

5431
- name: Test Plugin Python
5532
run: ctest --test-dir vsbuild -C RelWithDebInfo --output-on-failure
33+
34+
- name: Install Plugin Python
35+
run: cmake --build vsbuild --config RelWithDebInfo --target INSTALL

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ set(Python_VERSION_SHORT ${Python_VERSION_MAJOR}${Python_VERSION_MINOR})
2626
add_subdirectory(src)
2727

2828
# tests (if requested)
29-
set(PLUGIN_PYTHON_TESTING ${BUILD_TESTING} CACHE BOOL "build tests for plugin_python")
30-
if (PLUGIN_PYTHON_TESTING)
29+
set(BUILD_TESTING ${BUILD_TESTING} CACHE BOOL "build tests for plugin_python")
30+
if (BUILD_TESTING)
3131
enable_testing()
3232
add_subdirectory(tests)
3333
endif()

tests/python/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ UIBASE_PATH=set:${UIBASE_PATH}"
4040
mo2_python_pip_install(python-tests
4141
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/pylibs
4242
PACKAGES pytest
43-
PyQt${MO2_QT_VERSION_MAJOR}==${MO2_QT_VERSION}
43+
PyQt${MO2_QT_VERSION_MAJOR}==${MO2_PYQT_VERSION}
4444
PyQt${MO2_QT_VERSION_MAJOR}-Qt${MO2_QT_VERSION_MAJOR}==${MO2_QT_VERSION})
4545
add_dependencies(python-tests mobase)
4646
set_target_properties(python-tests PROPERTIES FOLDER tests/python)

tests/runner/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ mo2_python_pip_install(runner-tests
5252
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/pylibs
5353
PACKAGES
5454
pytest
55-
PyQt${MO2_QT_VERSION_MAJOR}==${MO2_QT_VERSION}
55+
PyQt${MO2_QT_VERSION_MAJOR}==${MO2_PYQT_VERSION}
5656
PyQt${MO2_QT_VERSION_MAJOR}-Qt${MO2_QT_VERSION_MAJOR}==${MO2_QT_VERSION})
5757

5858
add_dependencies(runner-tests mobase)

vcpkg.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@
1414
"default-registry": {
1515
"kind": "git",
1616
"repository": "https://github.com/Microsoft/vcpkg",
17-
"baseline": "8ae59b5b1329a51875abc71d528da93d9c3e8972"
17+
"baseline": "294f76666c3000630d828703e675814c05a4fd43"
1818
},
1919
"registries": [
2020
{
2121
"kind": "git",
2222
"repository": "https://github.com/Microsoft/vcpkg",
23-
"baseline": "8ae59b5b1329a51875abc71d528da93d9c3e8972",
23+
"baseline": "294f76666c3000630d828703e675814c05a4fd43",
2424
"packages": ["boost*", "boost-*"]
2525
},
2626
{
2727
"kind": "git",
2828
"repository": "https://github.com/ModOrganizer2/vcpkg-registry",
29-
"baseline": "dc9d84b9442c5ca4b6b8f23380e42f777f2857e5",
29+
"baseline": "228cda39fe9d1eeed789c0ef64fd1235dab3b11e",
3030
"packages": ["mo2-*", "pybind11", "spdlog"]
3131
}
3232
]

0 commit comments

Comments
 (0)