mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
39 lines
1.3 KiB
YAML
39 lines
1.3 KiB
YAML
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
|