Compare commits
1 Commits
81ab4fd130
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 6deb58fc27 |
11
.github/workflows/ubuntu.yml
vendored
11
.github/workflows/ubuntu.yml
vendored
@@ -23,7 +23,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Xmake config
|
- name: Xmake config
|
||||||
run: |
|
run: |
|
||||||
sudo apt install python3 libpython3-dev -y
|
sudo apt update
|
||||||
|
sudo apt install python3-dev -y
|
||||||
xmake f -p linux -vDy
|
xmake f -p linux -vDy
|
||||||
|
|
||||||
- name: Build wheel
|
- name: Build wheel
|
||||||
@@ -34,7 +35,11 @@ jobs:
|
|||||||
python -m build -w
|
python -m build -w
|
||||||
|
|
||||||
- name: Install wheel
|
- name: Install wheel
|
||||||
run: pip install dist/*
|
run: |
|
||||||
|
source .venv/bin/activate
|
||||||
|
pip install dist/*
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: python example_add.py
|
run: |
|
||||||
|
source .venv/bin/activate
|
||||||
|
python example_add.py
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
add_rules("mode.release", "mode.debug")
|
add_rules("mode.release", "mode.debug")
|
||||||
add_requires("python 3.12.3", "pybind11")
|
add_requires("pybind11")
|
||||||
|
|
||||||
target("example")
|
target("example")
|
||||||
set_prefixdir("$(prefixdir)/$(pythondir)", { libdir = "" })
|
set_prefixdir("$(prefixdir)/$(pythondir)", { libdir = "" })
|
||||||
|
|||||||
Reference in New Issue
Block a user