-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1226cb2
commit 8e2f0c4
Showing
2 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |