From c238430d5f2acd68ea944ca8c096376987f63c0b Mon Sep 17 00:00:00 2001 From: zpye Date: Fri, 2 Jun 2023 10:29:00 +0800 Subject: [PATCH] Create xmake.yml add workflows for CI/CD --- .github/workflows/xmake.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/xmake.yml diff --git a/.github/workflows/xmake.yml b/.github/workflows/xmake.yml new file mode 100644 index 0000000..58b0c9e --- /dev/null +++ b/.github/workflows/xmake.yml @@ -0,0 +1,37 @@ +name: xmake + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: release + +jobs: + build: + # You can convert this to a matrix build if you need cross-platform coverage. + # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Update Submodules + # Update 3rdparty libraries as submodule + run: git submodule update --init --recursive + + - name: Configure Xmake + # Configure xmake with platform and build type + run: xmake config -a x64 -m ${{BUILD_TYPE}} --builf_python=true + + - name: Build + # Build your program with the given configuration + run: xmake -w --all + + - name: Test + # working-directory: ${{github.workspace}}/build + run: xmake run test-layer +