From 4c8baa484dd92694f84dae8c7114ab5dcf2bed8d Mon Sep 17 00:00:00 2001 From: shad0wshayd3 Date: Thu, 14 Nov 2024 16:00:42 -0700 Subject: [PATCH] feat: add xmake workflow --- .github/workflows/main_ci_xmake.yml | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/main_ci_xmake.yml diff --git a/.github/workflows/main_ci_xmake.yml b/.github/workflows/main_ci_xmake.yml new file mode 100644 index 00000000..c7095ae7 --- /dev/null +++ b/.github/workflows/main_ci_xmake.yml @@ -0,0 +1,38 @@ +name: Main CI [XMake] + +on: + push: + branches: [ master ] + paths: + - ".github/workflows/main_ci_xmake.yml" + - "include/**" + - "src/**" + - "xmake.lua" + - "xmake-extra.lua" + pull_request: + branches: [ master ] + workflow_dispatch: + +jobs: + build-xmake: + runs-on: windows-latest + strategy: + fail-fast: false + matrix: + mode: + - debug + - release + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup XMake + uses: xmake-io/github-action-setup-xmake@v1 + with: + xmake-version: "latest" + + - name: Configure + run: xmake config -y --mode=${{ matrix.mode }} --vs_toolset=14.41 + + - name: Build + run: xmake build -y -vD