aboutsummaryrefslogtreecommitdiff
path: root/libs/plugin_python/.github/workflows/build-and-test.yml
blob: 57e7475ed7c23529fc56d47595a506649a57165e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build & Test Plugin Python

on:
  push:
    branches: [master]
  pull_request:
    types: [opened, synchronize, reopened]

env:
  VCPKG_BINARY_SOURCES: ${{ vars.AZ_BLOB_VCPKG_URL != '' && format('clear;x-azblob,{0},{1},readwrite', vars.AZ_BLOB_VCPKG_URL, secrets.AZ_BLOB_SAS) || '' }}

jobs:
  build:
    runs-on: windows-2022
    steps:
      - uses: actions/setup-python@v5
        with:
          python-version: "3.12"

      - name: Configure Plugin Python
        id: configure-plugin-python
        uses: ModOrganizer2/build-with-mob-action@master
        with:
          mo2-dependencies: uibase
          mo2-skip-build: true

      - name: Build Plugin Python
        working-directory: ${{ steps.configure-plugin-python.outputs.working-directory }}
        run: cmake --build vsbuild --config RelWithDebInfo --verbose `
          --target python-tests --target runner-tests --target proxy

      - name: Test Plugin Python
        working-directory: ${{ steps.configure-plugin-python.outputs.working-directory }}
        run: ctest --test-dir vsbuild -C RelWithDebInfo --output-on-failure

      - name: Install Plugin Python
        working-directory: ${{ steps.configure-plugin-python.outputs.working-directory }}
        run: cmake --build vsbuild --config RelWithDebInfo --target INSTALL