From 3ebdb356a2d94b1fba9357609c1c625b8ccf319c Mon Sep 17 00:00:00 2001 From: Qudix <17361645+Qudix@users.noreply.github.com> Date: Mon, 2 Oct 2023 15:25:15 -0500 Subject: [PATCH] chore: add xmake ci (#133) I had to comment out two includes (`stdfloat` and `print`) due to CI not using a newer version of the toolset (14.37) which includes these features. https://en.cppreference.com/w/cpp/compiler_support/23 --- .github/workflows/main_ci.yml | 4 ++-- .github/workflows/main_ci_xmake.yml | 31 +++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/main_ci_xmake.yml diff --git a/.github/workflows/main_ci.yml b/.github/workflows/main_ci.yml index 527b5786..c6a48ee7 100644 --- a/.github/workflows/main_ci.yml +++ b/.github/workflows/main_ci.yml @@ -1,8 +1,8 @@ -name: Main CI +name: Main CI [CMake] on: pull_request: - branches: [main, feature/*] + branches: [main, feature/*, fix/*] paths: - "CommonLibSF/**" workflow_dispatch: diff --git a/.github/workflows/main_ci_xmake.yml b/.github/workflows/main_ci_xmake.yml new file mode 100644 index 00000000..6ea981ff --- /dev/null +++ b/.github/workflows/main_ci_xmake.yml @@ -0,0 +1,31 @@ +name: Main CI [XMake] + +on: + pull_request: + branches: [main, feature/*, fix/*] + paths: + - "CommonLibSF/**" + - "xmake.lua" + +jobs: + build: + runs-on: windows-latest + strategy: + fail-fast: false + matrix: + mode: [release] + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup XMake + uses: xmake-io/github-action-setup-xmake@v1.0.13 + with: + xmake-version: '2.8.2' + + - name: Configure + run: xmake config -y --mode=${{ matrix.mode }} --vs_toolset=14.37 + + - name: Build + run: xmake build -y -vD