From 08b4f60ead64a83c9327fef9f197fa9d4db4d908 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 30 Jun 2024 22:13:01 +0200 Subject: [PATCH] git: Added CI runner to test plugin template building --- .github/workflows/build.yml | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c49553d5d..f6507b36c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -119,6 +119,52 @@ jobs: path: | build/install/* + win-plugin-template-test: + runs-on: windows-2022 + name: 🧪 Plugin Template Test + defaults: + run: + shell: msys2 {0} + needs: win + env: + IMHEX_SDK_PATH: "${{ github.workspace }}/out/sdk" + steps: + - name: 🟦 Install msys2 + uses: msys2/setup-msys2@v2 + with: + msystem: mingw64 + + - name: ⬇️ Install dependencies + run: | + set -x + dist/get_deps_msys2.sh + + - name: 🧰 Checkout ImHex-Plugin-Template + uses: actions/checkout@v4 + with: + name: WerWolv/ImHex-Plugin-Template + submodules: recursive + + - name: ⬇️ Download artifact + uses: actions/download-artifact@v4 + with: + name: Windows Portable x86_64 + path: out + + - name: 🛠️ Build + run: | + set -x + mkdir -p build + cd build + + cmake -G "Ninja" \ + -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ + -DIMHEX_USE_DEFAULT_BUILD_SETTINGS=ON \ + -DUSE_SYSTEM_CAPSTONE=ON \ + .. + + ninja + # MacOS build macos: runs-on: macos-12