This GitHub Action compiles the given Xircuits files and creates a requirements.txt
file to run them.
It supports specifying individual files, glob patterns, or directories to compile.
Description: List of files to compile (e.g., "File1.xircuits File2.xircuits foo/bar/baz/File3.xircuits"
).
Description: Glob pattern of files to compile (e.g., "*.xircuits"
).
Description: Directories containing Xircuits files to compile (e.g., "xai_components/xai_custom other_dir"
).
Required: No
Default: Latest version
Description: Xircuits version to use for compilation (e.g., "==1.10.1"
).
To use this action, you can include it in your GitHub Actions workflow file:
steps:
- uses: actions/checkout@v4
- uses: xpressai/xircuits-action@main
with:
files: 'my_file.xircuits'
xircuits_version: '==1.10.1'
This action will:
- Collect the specified Xircuits files.
- Set up Python and create a virtual environment.
- Install the specified version of Xircuits (or the latest version if not specified).
- Compile the collected Xircuits files.
- Collect and compile the dependencies from all compiled files into a top-level
requirements.txt
file.
The compiled Python files and the requirements.txt
file will be available in the workspace for further use in the workflow.
If you have suggestions for improving this action, please create an issue or submit a pull request to the XpressAI/xircuits-action repository.