Compare commits
11 Commits
main
...
81ab4fd130
| Author | SHA1 | Date | |
|---|---|---|---|
|
81ab4fd130
|
|||
|
fafa136ab2
|
|||
|
f127b57180
|
|||
|
8591ac29ba
|
|||
|
a6b2caaded
|
|||
|
46b2915516
|
|||
|
b9aaf0b6d9
|
|||
|
2671283d53
|
|||
|
f7f98f3acb
|
|||
|
e9c9d94dd1
|
|||
|
93e92dab0a
|
40
.github/workflows/ubuntu.yml
vendored
Normal file
40
.github/workflows/ubuntu.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
name: Linux arm64
|
||||
run-name: Build And Test
|
||||
|
||||
on: [push]
|
||||
|
||||
|
||||
env:
|
||||
XMAKE_ROOT: y
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Prepare XMake
|
||||
uses: xmake-io/github-action-setup-xmake@v1
|
||||
with:
|
||||
xmake-version: latest
|
||||
actions-cache-folder: '.xmake-cache'
|
||||
actions-cache-key: 'ubuntu'
|
||||
|
||||
- name: Xmake config
|
||||
run: |
|
||||
sudo apt install python3 libpython3-dev -y
|
||||
xmake f -p linux -vDy
|
||||
|
||||
- name: Build wheel
|
||||
run: |
|
||||
xrepo env python -m venv .venv
|
||||
source .venv/bin/activate
|
||||
pip install build
|
||||
python -m build -w
|
||||
|
||||
- name: Install wheel
|
||||
run: pip install dist/*
|
||||
|
||||
- name: Test
|
||||
run: python example_add.py
|
||||
7
example_add.py
Normal file
7
example_add.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import example
|
||||
|
||||
print("Checking add ...")
|
||||
|
||||
assert(example.add(42, 69) == 111)
|
||||
|
||||
print("Done !")
|
||||
Reference in New Issue
Block a user