aboutsummaryrefslogtreecommitdiff
path: root/libs/basic_games/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to 'libs/basic_games/.github/workflows')
-rw-r--r--libs/basic_games/.github/workflows/build.yml44
-rw-r--r--libs/basic_games/.github/workflows/linters.yml24
2 files changed, 68 insertions, 0 deletions
diff --git a/libs/basic_games/.github/workflows/build.yml b/libs/basic_games/.github/workflows/build.yml
new file mode 100644
index 0000000..ef00467
--- /dev/null
+++ b/libs/basic_games/.github/workflows/build.yml
@@ -0,0 +1,44 @@
+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.12"
+
+ - 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
diff --git a/libs/basic_games/.github/workflows/linters.yml b/libs/basic_games/.github/workflows/linters.yml
new file mode 100644
index 0000000..711a3a7
--- /dev/null
+++ b/libs/basic_games/.github/workflows/linters.yml
@@ -0,0 +1,24 @@
+name: linters
+
+on: [push, pull_request]
+
+jobs:
+ checks:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ path: "basic_games"
+ - name: Set up Python
+ uses: actions/setup-python@v2
+ with:
+ python-version: 3.12
+ - uses: abatilo/actions-poetry@v2
+ - name: Install
+ run: |
+ cd basic_games
+ poetry --no-root install
+ - name: Lint
+ run: |
+ cd basic_games
+ poetry run poe lint