Skip to content

Commit

Permalink
Create xmake.yml
Browse files Browse the repository at this point in the history
add workflows for CI/CD
  • Loading branch information
zpye committed Jun 2, 2023
1 parent c332388 commit c238430
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/xmake.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c238430

Please sign in to comment.