mirror of
https://github.com/ModOrganizer2/modorganizer-basic_games.git
synced 2026-07-27 14:07:29 -07:00
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
name: Build Basic Games Plugin
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-2022
|
|
steps:
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.13"
|
|
|
|
- name: Set environmental variables
|
|
shell: bash
|
|
run: |
|
|
echo "VCPKG_ROOT=$VCPKG_INSTALLATION_ROOT" >> $GITHUB_ENV
|
|
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
path: build
|
|
|
|
- name: Configure Basic Games Plugin build
|
|
working-directory: ${{ github.workspace }}/build
|
|
shell: pwsh
|
|
run: |
|
|
cmake --preset vs2022-windows "-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/install" "-DVCPKG_MANIFEST_FEATURES=standalone"
|
|
|
|
- name: Build Basic Games Plugin
|
|
working-directory: ${{ github.workspace }}/build
|
|
run: cmake --build vsbuild --config RelWithDebInfo
|
|
|
|
- name: Install Basic Games Plugin
|
|
working-directory: ${{ github.workspace }}/build
|
|
run: cmake --install vsbuild --config RelWithDebInfo
|
|
|
|
- name: Upload Basic Games Plugin artifact
|
|
uses: actions/upload-artifact@master
|
|
with:
|
|
name: basic_games
|
|
path: ${{ github.workspace }}/install/bin/plugins
|