|
46 | 46 | ref: ${{ github.event.pull_request.head.sha }}
|
47 | 47 | fetch-depth: ${{ env.PR_FETCH_DEPTH }}
|
48 | 48 |
|
| 49 | + # Prepare build dependency file based on the PR base branch |
| 50 | + - name: Prepare build-depends repos file (main branch) |
| 51 | + if: ${{ github.event.pull_request.base.ref == 'main' }} |
| 52 | + uses: ./.github/actions/combine-repos-action |
| 53 | + with: |
| 54 | + base_file: build_depends_humble.repos |
| 55 | + overlay_file: build_depends_nightly.repos |
| 56 | + output_file: build_depends.repos |
| 57 | + |
| 58 | + - name: Prepare build-depends repos file (humble branch) |
| 59 | + if: ${{ github.event.pull_request.base.ref == 'humble' }} |
| 60 | + run: cp build_depends_humble.repos build_depends.repos |
| 61 | + |
49 | 62 | - name: Show disk space before the tasks
|
50 | 63 | run: df -h
|
51 | 64 | shell: bash
|
@@ -91,20 +104,6 @@ jobs:
|
91 | 104 | echo "BUILD_TYPE_CUDA_STATE=$build_type_cuda_state" >> "${GITHUB_ENV}"
|
92 | 105 | echo "::notice::BUILD_TYPE_CUDA_STATE=$build_type_cuda_state"
|
93 | 106 | shell: bash
|
94 |
| - |
95 |
| - # Prepare build dependency file based on the PR base branch |
96 |
| - - name: Prepare build-depends repos file (main branch) |
97 |
| - if: ${{ github.event.pull_request.base.ref == 'main' }} |
98 |
| - uses: ./.github/actions/combine-repos-action |
99 |
| - with: |
100 |
| - base_file: build_depends_humble.repos |
101 |
| - overlay_file: build_depends_nightly.repos |
102 |
| - output_file: build_depends.repos |
103 |
| - |
104 |
| - - name: Prepare build-depends repos file (humble branch) |
105 |
| - if: ${{ github.event.pull_request.base.ref == 'humble' }} |
106 |
| - run: cp build_depends_humble.repos build_depends.repos |
107 |
| - |
108 | 107 | - name: Build
|
109 | 108 | if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
|
110 | 109 | uses: autowarefoundation/autoware-github-actions/colcon-build@v1
|
|
0 commit comments