Skip to content

Commit

Permalink
feat: add github action ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Dec 18, 2023
1 parent 1226cb2 commit 8e2f0c4
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Endstone CI (Windows)

on:
push:
branches:
- next
pull_request:
workflow_dispatch:

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ windows-2019, windows-2022 ]
build_type: [ Debug, Release ]

name: Build on ${{ matrix.os }} (${{ matrix.build_type }})
runs-on: ${{ matrix.os }}

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install conan cmake ninja
- name: Build with Conan
run: |
conan profile detect --force
conan create . --build=missing -s compiler.cppstd=17 -s build_type=${{ matrix.build_type }}
51 changes: 51 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[build-system]
requires = ["scikit-build-core", "conan"]
build-backend = "scikit_build_core.build"

[project]
name = "endstone"
authors = [
{ name = "Vincent Wu", email = "[email protected]" }
]
description = "Endstone offers a plugin API for Bedrock Dedicated Servers, supporting both Python and C++."
readme = "README.md"
requires-python = ">=3.9"
keywords = ["plugin", "python", "minecraft", "bedrock"]
license = { file = "LICENSE" }
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
]
#dependencies = [
# "click",
# "requests",
# "tomli",
# "tqdm",
# "packaging"
#]
dynamic = ["version"]

[project.optional-dependencies]
pytest = ["pytest"]

#[project.scripts]
#endstone = "endstone.bootstrap.cli:cli"
#
#[tool.scikit-build]
#build-dir = "build/{wheel_tag}"
#cmake.build-type = "Release"
#cmake.verbose = true
#wheel.packages = ["python/endstone"]
#wheel.license-files = ["LICENSE"]
#metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
#sdist.include = ["python/endstone/_version.py"]
#
#[tool.scikit-build.cmake.define]
#BUILD_TESTING = "OFF"

0 comments on commit 8e2f0c4

Please sign in to comment.