"git@developer.sourcefind.cn:gaoqiong/pybind11.git" did not exist on "8f2f7cd61cae57680baa3cef2c00c307f51b5146"
Commit e5ed9fa1 authored by YdrMaster's avatar YdrMaster
Browse files

issue/52: 添加 GitHub Actions workflow


Signed-off-by: default avatarYdrMaster <ydrml@hotmail.com>
parent 7bd656b7
name: Build and test
on:
pull_request:
push:
paths-ignore:
- '**.md'
- 'LICENSE'
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
type: [debug, release]
steps:
- name: checkout code
uses: actions/checkout@v4
- name: install black
run: pip install black
- name: check format
run: python3 scripts/format.py --path src --check
- name: install xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
- name: configure xmake
run: xmake f -cv
- name: build with xmake
run: xmake build && xmake install
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment