@@ -22,33 +22,14 @@ inputs:
2222 upload-enabled :
2323 required : true
2424 type : boolean
25+ python-version :
26+ required : true
27+ type : string
2528
2629runs :
2730 using : composite
2831 steps :
2932
30- <% for package_id, package_info in packages.items() %>
31- - name: Download <<package _info.repo >> (artifacts)
32- uses: ./.github/actions/download-artifacts
33- with:
34- artifact-repo: "<<package _info.repo >>"
35- artifact-name: "<<package _info.artifact_name | replace_placeholder( ' repo' , package_info.repo) | replace_placeholder( ' git_tag' , package_info.git_tag) >>"
36- target-device: "${{ inputs.target-device }}"
37- git_sha: "<<package _info.git_tag >>"
38- host-platform: ${{ inputs.host-platform }}
39- dest-dir: ${{ env.ARTIFACTS_DIR }}
40- dependencies-workflow: <<package _info.artifact_workflow >>
41- <% endfor %>
42-
43- <% if packages %>
44-
45- - name: Display structure of downloaded artifacts
46- shell: bash --noprofile --norc -xeuo pipefail {0}
47- run: |
48- pwd
49- ls -lahR ${{ env.ARTIFACTS_DIR }}
50- <% endif %>
51-
5233 - if : ${{ inputs.use-container }}
5334 name : Build (in container)
5435 shell : bash --noprofile --norc -xeuo pipefail {0}
@@ -60,14 +41,16 @@ runs:
6041 -e AWS_ACCESS_KEY_ID \
6142 -e AWS_SECRET_ACCESS_KEY \
6243 -e GITHUB_TOKEN \
63- -e ARTIFACTS_DIR="$ARTIFACTS_DIR" \
44+ -e BINDINGS_ARTIFACTS_DIR="$BINDINGS_ARTIFACTS_DIR" \
45+ -e CORE_ARTIFACTS_DIR="$CORE_ARTIFACTS_DIR" \
6446 -e UPLOAD_ENABLED="$UPLOAD_ENABLED" \
6547 -e USE_CUDA="$USE_CUDA" \
6648 -e REPO_DIR="$REPO_DIR" \
6749 -e LEGATE_CORE_BUILD_MODE="$LEGATE_CORE_BUILD_MODE" \
6850 -e PYTHON_VERSION="$PYTHON_VERSION" \
6951 -v "${{ env.REPO_DIR }}:${{ env.REPO_DIR }}" \
70- -v "${{ env.ARTIFACTS_DIR }}:${{ env.ARTIFACTS_DIR }}" \
52+ -v "${{ env.BINDINGS_ARTIFACTS_DIR }}:${{ env.BINDINGS_ARTIFACTS_DIR }}" \
53+ -v "${{ env.CORE_ARTIFACTS_DIR }}:${{ env.CORE_ARTIFACTS_DIR }}" \
7154 --rm "${{ inputs.docker-image }}" \
7255 /bin/bash -c "${{ env.REPO_DIR }}/continuous_integration/scripts/entrypoint ${{ env.REPO_DIR }}/continuous_integration/scripts/build ${{ inputs.build-type}} ${{ inputs.target-device }}"
7356
@@ -77,14 +60,26 @@ runs:
7760 run : |
7861 "${{ env.REPO_DIR }}/continuous_integration/scripts/entrypoint" "${{ env.REPO_DIR }}/continuous_integration/scripts/build" "${{ inputs.build-type}}" "${{ inputs.target-device }}"
7962
80- - name: Display structure of the artifacts folder (post build)
63+ - name : Display structure of the bindings artifacts folder (post build)
64+ shell : bash --noprofile --norc -xeuo pipefail {0}
65+ run : |
66+ sudo chown -R $(whoami) ${{ env.BINDINGS_ARTIFACTS_DIR }}
67+ ls -lahR ${{ env.BINDINGS_ARTIFACTS_DIR }}
68+
69+ - name : Upload bindings build artifacts
70+ uses : actions/upload-artifact@v4
71+ with :
72+ name : ${{ env.BINDINGS_ARTIFACT_NAME }}
73+ path : ${{ env.BINDINGS_ARTIFACTS_DIR }}
74+
75+ - name : Display structure of the core artifacts folder (post build)
8176 shell : bash --noprofile --norc -xeuo pipefail {0}
8277 run : |
83- sudo chown -R $(whoami) ${{ env.ARTIFACTS_DIR }}
84- ls -lahR ${{ env.ARTIFACTS_DIR }}
78+ sudo chown -R $(whoami) ${{ env.CORE_ARTIFACTS_DIR }}
79+ ls -lahR ${{ env.CORE_ARTIFACTS_DIR }}
8580
86- - name: Upload build artifacts
81+ - name : Upload core build artifacts
8782 uses : actions/upload-artifact@v4
8883 with :
89- name: ${{ env.ARTIFACT_NAME }}
90- path: ${{ env.ARTIFACTS_DIR }}
84+ name : ${{ env.CORE_ARTIFACT_NAME }}
85+ path : ${{ env.CORE_ARTIFACTS_DIR }}
0 commit comments