@@ -2,54 +2,34 @@ name: Build & Test Plugin Python
2
2
3
3
on :
4
4
push :
5
- branches : master
5
+ branches : [ master]
6
6
pull_request :
7
7
types : [opened, synchronize, reopened]
8
8
9
9
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
11
11
12
12
jobs :
13
13
build :
14
14
runs-on : windows-2022
15
15
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
-
24
16
- uses : actions/setup-python@v5
25
17
with :
26
18
python-version : " 3.12"
27
19
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
30
23
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
49
26
50
27
- name : Build Plugin Python
51
28
run : cmake --build vsbuild --config RelWithDebInfo --verbose `
52
29
--target python-tests --target runner-tests --target proxy
53
30
54
31
- name : Test Plugin Python
55
32
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
0 commit comments