Skip to content

Dev#38

Merged
felix-schultz merged 4 commits intomainfrom
dev
Mar 16, 2025
Merged

Dev#38
felix-schultz merged 4 commits intomainfrom
dev

Conversation

@felix-schultz
Copy link
Copy Markdown
Member

No description provided.

@felix-schultz felix-schultz merged commit 6c79012 into main Mar 16, 2025
4 of 11 checks passed
@deepsource-io
Copy link
Copy Markdown

deepsource-io bot commented Mar 16, 2025

Here's the code health analysis summary for commits 509290c..300d242. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Docker LogoDocker✅ SuccessView Check ↗
DeepSource Rust LogoRust❌ Failure
❗ 59 occurences introduced
🎯 46 occurences resolved
View Check ↗
DeepSource JavaScript LogoJavaScript✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Comment on lines +10 to +71
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: flow-docling-linux-x64
- os: windows-latest
artifact_name: flow-docling-windows-x64.exe
- os: macos-latest
artifact_name: flow-docling-macos-x64
- os: macos-14
artifact_name: flow-docling-macos-arm64

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: 'apps/docling/requirements*.txt'

- name: Cache build directory
uses: actions/cache@v3
with:
path: apps/docling/build
key: ${{ runner.os }}-build-${{ hashFiles('apps/docling/**/*.py') }}
restore-keys: |
${{ runner.os }}-build-

- name: Install dependencies
working-directory: apps/docling
run: |
python -m pip install --upgrade pip
pip install pyinstaller docling rtree

- name: Build binary
working-directory: apps/docling
run: |
pyinstaller --onefile --name flow-docling --hidden-import=docling --hidden-import=rtree --noconfirm --collect-all docling_parse main.py

- name: Prepare binary for upload
id: prepare-binary
shell: bash
working-directory: apps/docling/dist
run: |
if [[ "${{ runner.os }}" == "Windows" ]]; then
cp flow-docling.exe ${{ matrix.artifact_name }}
else
cp flow-docling ${{ matrix.artifact_name }}
fi
echo "binary_path=apps/docling/dist/${{ matrix.artifact_name }}" >> $GITHUB_OUTPUT

- name: Upload binary to artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.artifact_name }}
path: ${{ steps.prepare-binary.outputs.binary_path }}

release:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants