@@ -2,54 +2,37 @@ name: Build & Test Plugin Python
22
33on:
44 push:
5- branches: master
5+ branches: [ master]
66 pull_request:
77 types: [opened, synchronize, reopened]
88
99env:
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
1212jobs:
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
28+ working-directory: ${{ steps.configure-plugin-python.outputs.working-directory }}
5129 run: cmake --build vsbuild --config RelWithDebInfo --verbose `
5230 --target python-tests --target runner-tests --target proxy
5331
5432 - name: Test Plugin Python
33+ working-directory: ${{ steps.configure-plugin-python.outputs.working-directory }}
5534 run: ctest --test-dir vsbuild -C RelWithDebInfo --output-on-failure
35+
36+ - name: Install Plugin Python
37+ working-directory: ${{ steps.configure-plugin-python.outputs.working-directory }}
38+ run: cmake --build vsbuild --config RelWithDebInfo --target INSTALL
0 commit comments