|
6 | 6 | branches: [ master ] |
7 | 7 |
|
8 | 8 | jobs: |
| 9 | + build_opencue_packages: |
| 10 | + name: Build opencue packages |
| 11 | + runs-on: ubuntu-22.04 |
| 12 | + container: python:3.7 |
| 13 | + outputs: |
| 14 | + opencue_proto_path: ${{ steps.build_opencue_proto.outputs.opencue_proto_path }} |
| 15 | + opencue_pycue_path: ${{ steps.build_pycue.outputs.opencue_pycue_path }} |
| 16 | + opencue_pyoutline_path: ${{ steps.build_pyoutline.outputs.opencue_pyoutline_path }} |
| 17 | + opencue_cueadmin_path: ${{ steps.build_cueadmin.outputs.opencue_cueadmin_path }} |
| 18 | + opencue_cuesubmit_path: ${{ steps.build_cuesubmit.outputs.opencue_cuesubmit_path }} |
| 19 | + opencue_rqd_path: ${{ steps.build_rqd.outputs.opencue_rqd_path }} |
| 20 | + steps: |
| 21 | + - uses: actions/checkout@v4 |
| 22 | + with: |
| 23 | + fetch-tags: true |
| 24 | + fetch-depth: 0 |
| 25 | + - name: Mark repository as safe (Fix for https://github.com/actions/checkout/issues/1048) |
| 26 | + run: git config --global --add safe.directory $GITHUB_WORKSPACE |
| 27 | + |
| 28 | + - name: Prepare building packages |
| 29 | + run: | |
| 30 | + pip install build==1.1.1 |
| 31 | +
|
| 32 | + - name: Build opencue_proto package |
| 33 | + id: build_opencue_proto |
| 34 | + run: | |
| 35 | + set -e |
| 36 | + python -m build ./proto |
| 37 | + echo "opencue_proto_path=$(find ./proto/dist -name 'opencue_proto-*.whl' -print -quit)" >> $GITHUB_OUTPUT |
| 38 | +
|
| 39 | + - name: Build opencue_pycue package |
| 40 | + id: build_pycue |
| 41 | + run: | |
| 42 | + set -e |
| 43 | + python -m build ./pycue |
| 44 | + echo "opencue_pycue_path=$(find ./pycue/dist -name 'opencue_pycue-*.whl' -print -quit)" >> $GITHUB_OUTPUT |
| 45 | +
|
| 46 | + - name: Build opencue_pyoutline package |
| 47 | + id: build_pyoutline |
| 48 | + run: | |
| 49 | + set -e |
| 50 | + python -m build ./pyoutline |
| 51 | + echo "opencue_pyoutline_path=$(find ./pyoutline/dist -name 'opencue_pyoutline-*.whl' -print -quit)" >> $GITHUB_OUTPUT |
| 52 | +
|
| 53 | + - name: Build opencue_cueadmin package |
| 54 | + id: build_cueadmin |
| 55 | + run: | |
| 56 | + set -e |
| 57 | + python -m build ./cueadmin |
| 58 | + echo "opencue_cueadmin_path=$(find ./cueadmin/dist -name 'opencue_cueadmin-*.whl' -print -quit)" >> $GITHUB_OUTPUT |
| 59 | +
|
| 60 | + - name: Build opencue_cuesubmit package |
| 61 | + id: build_cuesubmit |
| 62 | + run: | |
| 63 | + set -e |
| 64 | + python -m build ./cuesubmit |
| 65 | + echo "opencue_cuesubmit_path=$(find ./cuesubmit/dist -name 'opencue_cuesubmit-*.whl' -print -quit)" >> $GITHUB_OUTPUT |
| 66 | +
|
| 67 | + - name: Build opencue_rqd package |
| 68 | + id: build_rqd |
| 69 | + run: | |
| 70 | + set -e |
| 71 | + python -m build ./rqd |
| 72 | + echo "opencue_rqd_path=$(find ./rqd/dist -name 'opencue_rqd-*.whl' -print -quit)" >> $GITHUB_OUTPUT |
| 73 | +
|
| 74 | + - name: Upload opencue packages |
| 75 | + uses: actions/upload-artifact@v4 |
| 76 | + with: |
| 77 | + name: opencue_packages |
| 78 | + path: | |
| 79 | + proto/dist/*.* |
| 80 | + pycue/dist/*.* |
| 81 | + pyoutline/dist/*.* |
| 82 | + cueadmin/dist/*.* |
| 83 | + cuesubmit/dist/*.* |
| 84 | + rqd/dist/*.* |
9 | 85 | integration_test: |
| 86 | + needs: build_opencue_packages |
10 | 87 | name: Run Integration Test |
11 | 88 | runs-on: ubuntu-22.04 |
12 | 89 | steps: |
13 | 90 | - name: Checkout |
14 | | - uses: actions/checkout@v3 |
15 | | - |
| 91 | + uses: actions/checkout@v4 |
| 92 | + with: |
| 93 | + fetch-depth: 0 |
| 94 | + fetch-tags: true |
| 95 | + - name: Mark repository as safe (Fix for https://github.com/actions/checkout/issues/1048) |
| 96 | + run: git config --global --add safe.directory $GITHUB_WORKSPACE |
| 97 | + - name: Download a single artifact |
| 98 | + uses: actions/download-artifact@v4 |
| 99 | + with: |
| 100 | + name: opencue_packages |
16 | 101 | - name: Run test |
17 | | - run: ci/run_integration_test.sh |
| 102 | + run: | |
| 103 | + export OPENCUE_PROTO_PACKAGE_PATH="${{ needs.build_opencue_packages.outputs.opencue_proto_path }}" |
| 104 | + export OPENCUE_PYCUE_PACKAGE_PATH="${{ needs.build_opencue_packages.outputs.opencue_pycue_path }}" |
| 105 | + export OPENCUE_PYOUTLINE_PACKAGE_PATH="${{ needs.build_opencue_packages.outputs.opencue_pyoutline_path }}" |
| 106 | + export OPENCUE_CUEADMIN_PACKAGE_PATH="${{ needs.build_opencue_packages.outputs.opencue_cueadmin_path }}" |
| 107 | + export OPENCUE_CUESUBMIT_PACKAGE_PATH="${{ needs.build_opencue_packages.outputs.opencue_cuesubmit_path }}" |
| 108 | + export OPENCUE_RQD_PACKAGE_PATH="${{ needs.build_opencue_packages.outputs.opencue_rqd_path }}" |
| 109 | + ci/run_integration_test.sh |
18 | 110 |
|
19 | 111 | - name: Archive log files |
20 | 112 | uses: actions/upload-artifact@v4 |
|
59 | 151 |
|
60 | 152 | name: Build ${{ matrix.NAME }} |
61 | 153 | runs-on: ubuntu-22.04 |
| 154 | + continue-on-error: true |
62 | 155 | steps: |
63 | 156 | - name: Checkout |
64 | 157 | uses: actions/checkout@v3 |
@@ -122,6 +215,7 @@ jobs: |
122 | 215 | name: Create Other Build Artifacts |
123 | 216 | needs: build_components |
124 | 217 | runs-on: ubuntu-22.04 |
| 218 | + continue-on-error: true |
125 | 219 | steps: |
126 | 220 | - name: Checkout |
127 | 221 | uses: actions/checkout@v3 |
|
0 commit comments