|
40 | 40 | outputs: |
41 | 41 | base-artifact-name: ${{ steps.set-names.outputs.base-artifact-name }} |
42 | 42 | main-artifact-name: ${{ steps.set-names.outputs.main-artifact-name }} |
| 43 | + lfx-artifact-name: ${{ steps.set-names.outputs.lfx-artifact-name }} |
43 | 44 | steps: |
44 | 45 | - name: Checkout code |
45 | 46 | uses: actions/checkout@v6 |
|
62 | 63 | # Base package builds to dist/ but should be in src/backend/base/dist/ |
63 | 64 | mkdir -p src/backend/base/dist |
64 | 65 | mv dist/langflow_base*.whl src/backend/base/dist/ |
| 66 | + - name: Build LFX package |
| 67 | + run: | |
| 68 | + cd src/lfx |
| 69 | + uv build --wheel --out-dir dist |
65 | 70 | - name: Build main package |
66 | 71 | run: make build_langflow args="--wheel" |
| 72 | + - name: Upload lfx artifact |
| 73 | + uses: actions/upload-artifact@v6 |
| 74 | + with: |
| 75 | + name: adhoc-dist-lfx |
| 76 | + path: src/lfx/dist |
67 | 77 | - name: Upload base artifact |
68 | 78 | uses: actions/upload-artifact@v6 |
69 | 79 | with: |
|
79 | 89 | run: | |
80 | 90 | echo "base-artifact-name=adhoc-dist-base" >> $GITHUB_OUTPUT |
81 | 91 | echo "main-artifact-name=adhoc-dist-main" >> $GITHUB_OUTPUT |
| 92 | + echo "lfx-artifact-name=adhoc-dist-lfx" >> $GITHUB_OUTPUT |
82 | 93 |
|
83 | 94 | test-installation-stable: |
84 | 95 | name: Install & Run - ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.python-version }} |
@@ -173,10 +184,10 @@ jobs: |
173 | 184 | path: ./sdk-dist |
174 | 185 |
|
175 | 186 | - name: Download LFX package artifact |
176 | | - if: steps.install-method.outputs.method == 'wheel' && inputs.lfx-artifact-name != '' |
| 187 | + if: steps.install-method.outputs.method == 'wheel' && (inputs.lfx-artifact-name != '' || needs.build-if-needed.outputs.lfx-artifact-name != '') |
177 | 188 | uses: actions/download-artifact@v7 |
178 | 189 | with: |
179 | | - name: ${{ inputs.lfx-artifact-name }} |
| 190 | + name: ${{ inputs.lfx-artifact-name || needs.build-if-needed.outputs.lfx-artifact-name || 'adhoc-dist-lfx' }} |
180 | 191 | path: ./lfx-dist |
181 | 192 |
|
182 | 193 | - name: Download base package artifact |
@@ -229,7 +240,7 @@ jobs: |
229 | 240 | shell: bash |
230 | 241 |
|
231 | 242 | - name: Install LFX package from wheel (Windows) |
232 | | - if: steps.install-method.outputs.method == 'wheel' && matrix.os == 'windows' && inputs.lfx-artifact-name != '' && inputs.sdk-artifact-name == '' |
| 243 | + if: steps.install-method.outputs.method == 'wheel' && matrix.os == 'windows' && (inputs.lfx-artifact-name != '' || needs.build-if-needed.outputs.lfx-artifact-name != '') && inputs.sdk-artifact-name == '' |
233 | 244 | run: | |
234 | 245 | ls -la ./lfx-dist/ |
235 | 246 | find ./lfx-dist -name "*.whl" -type f |
@@ -300,7 +311,7 @@ jobs: |
300 | 311 | shell: bash |
301 | 312 |
|
302 | 313 | - name: Install LFX package from wheel (Unix) |
303 | | - if: steps.install-method.outputs.method == 'wheel' && matrix.os != 'windows' && inputs.lfx-artifact-name != '' && inputs.sdk-artifact-name == '' |
| 314 | + if: steps.install-method.outputs.method == 'wheel' && matrix.os != 'windows' && (inputs.lfx-artifact-name != '' || needs.build-if-needed.outputs.lfx-artifact-name != '') && inputs.sdk-artifact-name == '' |
304 | 315 | run: | |
305 | 316 | ls -la ./lfx-dist/ |
306 | 317 | find ./lfx-dist -name "*.whl" -type f |
@@ -537,10 +548,10 @@ jobs: |
537 | 548 | path: ./sdk-dist |
538 | 549 |
|
539 | 550 | - name: Download LFX package artifact |
540 | | - if: steps.install-method.outputs.method == 'wheel' && inputs.lfx-artifact-name != '' |
| 551 | + if: steps.install-method.outputs.method == 'wheel' && (inputs.lfx-artifact-name != '' || needs.build-if-needed.outputs.lfx-artifact-name != '') |
541 | 552 | uses: actions/download-artifact@v7 |
542 | 553 | with: |
543 | | - name: ${{ inputs.lfx-artifact-name }} |
| 554 | + name: ${{ inputs.lfx-artifact-name || needs.build-if-needed.outputs.lfx-artifact-name || 'adhoc-dist-lfx' }} |
544 | 555 | path: ./lfx-dist |
545 | 556 |
|
546 | 557 | - name: Download base package artifact |
@@ -588,7 +599,7 @@ jobs: |
588 | 599 | shell: bash |
589 | 600 |
|
590 | 601 | - name: Install LFX package from wheel (Windows) |
591 | | - if: steps.install-method.outputs.method == 'wheel' && matrix.os == 'windows' && inputs.lfx-artifact-name != '' |
| 602 | + if: steps.install-method.outputs.method == 'wheel' && matrix.os == 'windows' && (inputs.lfx-artifact-name != '' || needs.build-if-needed.outputs.lfx-artifact-name != '') |
592 | 603 | run: | |
593 | 604 | ls -la ./lfx-dist/ |
594 | 605 | find ./lfx-dist -name "*.whl" -type f |
@@ -630,7 +641,7 @@ jobs: |
630 | 641 | shell: bash |
631 | 642 |
|
632 | 643 | - name: Install LFX package from wheel (Unix) |
633 | | - if: steps.install-method.outputs.method == 'wheel' && matrix.os != 'windows' && inputs.lfx-artifact-name != '' |
| 644 | + if: steps.install-method.outputs.method == 'wheel' && matrix.os != 'windows' && (inputs.lfx-artifact-name != '' || needs.build-if-needed.outputs.lfx-artifact-name != '') |
634 | 645 | run: | |
635 | 646 | ls -la ./lfx-dist/ |
636 | 647 | find ./lfx-dist -name "*.whl" -type f |
@@ -675,7 +686,7 @@ jobs: |
675 | 686 | if: steps.install-method.outputs.method == 'wheel' && matrix.os == 'windows' |
676 | 687 | run: | |
677 | 688 | # Reinstall LFX if it was provided |
678 | | - if [ -n "${{ inputs.lfx-artifact-name }}" ]; then |
| 689 | + if [ -n "${{ inputs.lfx-artifact-name || needs.build-if-needed.outputs.lfx-artifact-name }}" ]; then |
679 | 690 | LFX_WHEEL=$(find ./lfx-dist -name "*.whl" -type f | head -1) |
680 | 691 | if [ -n "$LFX_WHEEL" ]; then |
681 | 692 | echo "Force reinstalling LFX: $LFX_WHEEL" |
@@ -703,7 +714,7 @@ jobs: |
703 | 714 | if: steps.install-method.outputs.method == 'wheel' && matrix.os != 'windows' |
704 | 715 | run: | |
705 | 716 | # Reinstall LFX if it was provided |
706 | | - if [ -n "${{ inputs.lfx-artifact-name }}" ]; then |
| 717 | + if [ -n "${{ inputs.lfx-artifact-name || needs.build-if-needed.outputs.lfx-artifact-name }}" ]; then |
707 | 718 | LFX_WHEEL=$(find ./lfx-dist -name "*.whl" -type f | head -1) |
708 | 719 | if [ -n "$LFX_WHEEL" ]; then |
709 | 720 | echo "Force reinstalling LFX: $LFX_WHEEL" |
|
0 commit comments