From 93e92dab0af60820f8dfca41f016571a7780bcb7 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Sun, 7 Dec 2025 15:31:02 +0100 Subject: [PATCH] test ci --- .github/workflows/ubuntu.yml | 35 +++++++++++++++++++++++++++++++++++ example_add.py | 7 +++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/ubuntu.yml create mode 100644 example_add.py diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml new file mode 100644 index 0000000..8046051 --- /dev/null +++ b/.github/workflows/ubuntu.yml @@ -0,0 +1,35 @@ +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: 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 \ No newline at end of file diff --git a/example_add.py b/example_add.py new file mode 100644 index 0000000..9738ecb --- /dev/null +++ b/example_add.py @@ -0,0 +1,7 @@ +import example + +print("Checking add ...") + +assert(example.add(42, 69) == 111) + +print("Done !") \ No newline at end of file