91e75e620b
CI: cua-driver distro-compat matrix / debian:12 (glibc 2.36) (push) Has been cancelled
CI: SPDX Headers / Check SPDX headers (warn-only) (push) Has been cancelled
CD: Docs MCP Server / build (linux/amd64) (push) Has been cancelled
CD: Docs MCP Server / build (linux/arm64) (push) Has been cancelled
CD: Docs MCP Server / merge (push) Has been cancelled
CI: cua-driver distro-compat matrix / Resolve release version (push) Has been cancelled
CI: cua-driver distro-compat matrix / fedora:41 (glibc 2.40) (push) Has been cancelled
CI: cua-driver distro-compat matrix / rockylinux:9 (glibc 2.34) (push) Has been cancelled
CI: cua-driver distro-compat matrix / ubuntu:22.04 (glibc 2.35) (push) Has been cancelled
CI: cua-driver distro-compat matrix / ubuntu:24.04 (glibc 2.39) (push) Has been cancelled
CI: cua-driver distro-compat matrix / Distro compat summary (push) Has been cancelled
CI: Rust Linux unit / Rust Linux unit and compile (push) Has been cancelled
CI: Rust Windows unit / Rust Windows unit and compile (push) Has been cancelled
CI: Nix Linux Rust source / Nix / compositor build (push) Has been cancelled
CI: Nix Linux Rust source / Nix / driver package (push) Has been cancelled
CI: Nix Linux Rust source / Nix / Rust unit tests (push) Has been cancelled
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
name: Reusable Package Build Workflow
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
package_name:
|
|
description: "Name of the package (e.g. computer, agent)"
|
|
required: true
|
|
type: string
|
|
package_dir:
|
|
description: "Directory containing the package relative to workspace root (e.g. libs/python/computer)"
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Create root pdm.lock file
|
|
run: touch pdm.lock
|
|
|
|
- name: Install PDM
|
|
uses: pdm-project/setup-pdm@v3
|
|
with:
|
|
python-version: "3.11"
|
|
cache: true
|
|
|
|
- name: Initialize PDM in package directory
|
|
run: |
|
|
cd ${{ inputs.package_dir }}
|
|
if [ ! -f "pdm.lock" ]; then
|
|
echo "No pdm.lock found, initializing PDM project..."
|
|
pdm lock
|
|
fi
|
|
|
|
- name: Build package
|
|
run: |
|
|
cd ${{ inputs.package_dir }}
|
|
pdm build
|
|
echo "Successfully built ${{ inputs.package_name }}"
|
|
|
|
- name: Verify build artifacts
|
|
run: |
|
|
cd ${{ inputs.package_dir }}
|
|
ls -la dist/
|
|
echo "Build artifacts created successfully"
|