diff options
| author | Stephanos Ioannidis <root@stephanos.io> | 2024-10-04 01:33:12 +0900 |
|---|---|---|
| committer | Stephanos Ioannidis <root@stephanos.io> | 2024-10-04 01:42:34 +0900 |
| commit | 828d146c69d78d416b685f4e4c3556ce563af428 (patch) | |
| tree | 403d3ba1398ed9ba7f124b969273f4418bbbe1b2 | |
| parent | 46b413384a4f91b9251d39491293ed2cacfab5ff (diff) | |
ci: Add Python package workflow
This commit adds a GitHub Actions CI workflow that builds source and
built distribution (wheel) packages.
Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
| -rw-r--r-- | .github/workflows/package.yml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml new file mode 100644 index 0000000..0014d93 --- /dev/null +++ b/.github/workflows/package.yml @@ -0,0 +1,55 @@ +name: Package + +on: + push: + branches: + - main + - v*-branch + pull_request: + branches: + - main + - v*-branch + workflow_call: + +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + +jobs: + package: + name: Package + runs-on: ubuntu-22.04 + + steps: + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + + - name: Check Python version + run: | + set -x + python --version + pip --version + python -c "import platform; print(platform.architecture())" + + - name: Install Python dependencies + run: | + pip install --user setuptools wheel + + - name: Check out Kconfiglib source code + uses: actions/checkout@v4 + + - name: Build source distribution + run: | + python setup.py sdist + + - name: Build built distribution wheel + run: | + python setup.py bdist_wheel + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: dist + path: dist/* |
