docs: add plugin setup guide
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- ".github/workflows/build.yml"
|
||||
- "include/**"
|
||||
- "src/**"
|
||||
- "xmake.lua"
|
||||
- "xmake-rules.lua"
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
xmake:
|
||||
runs-on: windows-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
mode:
|
||||
- debug
|
||||
- release
|
||||
toolchain:
|
||||
- msvc
|
||||
- clang-cl
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: setup
|
||||
uses: xmake-io/github-action-setup-xmake@v1
|
||||
with:
|
||||
xmake-version: "latest"
|
||||
|
||||
- name: config
|
||||
run: xmake config -y --mode=${{ matrix.mode }} --toolchain=${{ matrix.toolchain }}
|
||||
|
||||
- name: build
|
||||
run: xmake build -y -vD
|
||||
@@ -0,0 +1,24 @@
|
||||
name: maintenance
|
||||
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
maintenance:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.9'
|
||||
|
||||
- name: Run clang-format
|
||||
run: find -type f \( -name *.h -o -name *.cpp \) | xargs clang-format -style=file -i
|
||||
|
||||
- name: Glob files
|
||||
run: python ${{ github.workspace }}/res/scripts/generate_headers.py
|
||||
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: maintenance
|
||||
Reference in New Issue
Block a user