66 branches : [ master ]
77
88jobs :
9+ build_opencue_packages :
10+ name : Build Python Packages
11+ runs-on : ubuntu-22.04
12+ container : python:3.7
13+ outputs :
14+ opencue_proto_path : ${{ steps.package_outputs.outputs.opencue_proto_path }}
15+ opencue_pycue_path : ${{ steps.package_outputs.outputs.opencue_pycue_path }}
16+ opencue_pyoutline_path : ${{ steps.package_outputs.outputs.opencue_pyoutline_path }}
17+ opencue_cueadmin_path : ${{ steps.package_outputs.outputs.opencue_cueadmin_path }}
18+ opencue_cueman_path : ${{ steps.package_outputs.outputs.opencue_cueman_path }}
19+ opencue_cuesubmit_path : ${{ steps.package_outputs.outputs.opencue_cuesubmit_path }}
20+ opencue_rqd_path : ${{ steps.package_outputs.outputs.opencue_rqd_path }}
21+ steps :
22+ - uses : actions/checkout@v4
23+ with :
24+ fetch-tags : true
25+ fetch-depth : 0
26+
27+ - name : Mark repository as safe (Fix for https://github.com/actions/checkout/issues/1048)
28+ run : git config --global --add safe.directory $GITHUB_WORKSPACE
29+
30+ - uses : ./.github/actions/build-python-packages
31+
32+ - name : Gather package paths
33+ id : package_outputs
34+ run : |
35+ echo "opencue_proto_path=$(find ./packages -name 'opencue_proto-*.whl' -print -quit)" >> $GITHUB_OUTPUT
36+ echo "opencue_rqd_path=$(find ./packages -name 'opencue_rqd-*.whl' -print -quit)" >> $GITHUB_OUTPUT
37+ echo "opencue_pycue_path=$(find ./packages -name 'opencue_pycue-*.whl' -print -quit)" >> $GITHUB_OUTPUT
38+ echo "opencue_pyoutline_path=$(find ./packages -name 'opencue_pyoutline-*.whl' -print -quit)" >> $GITHUB_OUTPUT
39+ echo "opencue_cuesubmit_path=$(find ./packages -name 'opencue_cuesubmit-*.whl' -print -quit)" >> $GITHUB_OUTPUT
40+ echo "opencue_cueadmin_path=$(find ./packages -name 'opencue_cueadmin-*.whl' -print -quit)" >> $GITHUB_OUTPUT
41+ echo "opencue_cueman_path=$(find ./packages -name 'opencue_cueman-*.whl' -print -quit)" >> $GITHUB_OUTPUT
42+ echo "opencue_cuegui_path=$(find ./packages -name 'opencue_cuegui-*.whl' -print -quit)" >> $GITHUB_OUTPUT
43+
944 integration_test :
45+ needs : build_opencue_packages
1046 name : Run Integration Test
1147 runs-on : ubuntu-22.04
1248 steps :
1349 - name : Checkout
14- uses : actions/checkout@v3
50+ uses : actions/checkout@v4
51+ with :
52+ fetch-depth : 0
53+ fetch-tags : true
54+
55+ - name : Mark repository as safe (Fix for https://github.com/actions/checkout/issues/1048)
56+ run : git config --global --add safe.directory $GITHUB_WORKSPACE
57+
58+ - name : Download a single artifact
59+ uses : actions/download-artifact@v4
60+ with :
61+ name : opencue_packages
62+ path : packages
1563
1664 - name : Run test
17- run : ci/run_integration_test.sh
65+ run : |
66+ export OPENCUE_PROTO_PACKAGE_PATH="${{ needs.build_opencue_packages.outputs.opencue_proto_path }}"
67+ export OPENCUE_PYCUE_PACKAGE_PATH="${{ needs.build_opencue_packages.outputs.opencue_pycue_path }}"
68+ export OPENCUE_PYOUTLINE_PACKAGE_PATH="${{ needs.build_opencue_packages.outputs.opencue_pyoutline_path }}"
69+ export OPENCUE_CUEADMIN_PACKAGE_PATH="${{ needs.build_opencue_packages.outputs.opencue_cueadmin_path }}"
70+ export OPENCUE_CUEMAN_PACKAGE_PATH="${{ needs.build_opencue_packages.outputs.opencue_cueadmin_path }}"
71+ export OPENCUE_CUESUBMIT_PACKAGE_PATH="${{ needs.build_opencue_packages.outputs.opencue_cuesubmit_path }}"
72+ export OPENCUE_RQD_PACKAGE_PATH="${{ needs.build_opencue_packages.outputs.opencue_rqd_path }}"
73+ ci/run_integration_test.sh
1874
1975 - name : Archive log files
2076 uses : actions/upload-artifact@v4
@@ -57,8 +113,13 @@ jobs:
57113 NAME : CueAdmin
58114 ARTIFACTS : cueadmin-${BUILD_ID}-all.tar.gz
59115
116+ - component : cueman
117+ NAME : CueMan
118+ ARTIFACTS : cueman-${BUILD_ID}-all.tar.gz
119+
60120 name : Build ${{ matrix.NAME }}
61121 runs-on : ubuntu-22.04
122+ continue-on-error : true
62123 steps :
63124 - name : Checkout
64125 uses : actions/checkout@v3
85146 - name : Set build ID
86147 run : |
87148 set -e
88- ci/generate_version_number.sh > VERSION
89- echo "Build ID: $(cat ./VERSION)"
90- echo "BUILD_ID=$(cat ./VERSION)" >> ${GITHUB_ENV}
149+ echo "Build ID: $(ci/generate_version_number.py)"
150+ echo "BUILD_ID=$(ci/generate_version_number.py)" >> ${GITHUB_ENV}
91151
92152 - name : Build Docker image
93153 uses : docker/build-push-action@v3
@@ -122,6 +182,7 @@ jobs:
122182 name : Create Other Build Artifacts
123183 needs : build_components
124184 runs-on : ubuntu-22.04
185+ continue-on-error : true
125186 steps :
126187 - name : Checkout
127188 uses : actions/checkout@v3
@@ -141,10 +202,9 @@ jobs:
141202
142203 - name : Set build ID
143204 run : |
144- set -e
145- ci/generate_version_number.sh > VERSION
146- echo "Build ID: $(cat ./VERSION)"
147- echo "BUILD_ID=$(cat ./VERSION)" >> ${GITHUB_ENV}
205+ set -e
206+ echo "Build ID: $(ci/generate_version_number.py)"
207+ echo "BUILD_ID=$(ci/generate_version_number.py)" >> ${GITHUB_ENV}
148208
149209 - name : Extract database schema
150210 run : |
0 commit comments