35 lines
716 B
YAML
35 lines
716 B
YAML
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 |