|
| 1 | +name: build-and-test-differential-self-hosted |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + types: |
| 6 | + - opened |
| 7 | + - synchronize |
| 8 | + - labeled |
| 9 | + workflow_dispatch: |
| 10 | + |
| 11 | +jobs: |
| 12 | + prevent-no-label-execution: |
| 13 | + uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1 |
| 14 | + with: |
| 15 | + label: ARM64 |
| 16 | + |
| 17 | + build-and-test-differential-self-hosted: |
| 18 | + needs: prevent-no-label-execution |
| 19 | + if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }} |
| 20 | + runs-on: [self-hosted, linux, ARM64] |
| 21 | + container: ${{ matrix.container }}${{ matrix.container-suffix }} |
| 22 | + strategy: |
| 23 | + fail-fast: false |
| 24 | + matrix: |
| 25 | + rosdistro: |
| 26 | + - humble |
| 27 | + container-suffix: |
| 28 | + - "" |
| 29 | + - -cuda |
| 30 | + include: |
| 31 | + - rosdistro: humble |
| 32 | + container: ghcr.io/autowarefoundation/autoware-universe:humble-latest |
| 33 | + build-depends-repos: build_depends.repos |
| 34 | + steps: |
| 35 | + - name: Check out repository |
| 36 | + uses: actions/checkout@v3 |
| 37 | + with: |
| 38 | + fetch-depth: 0 |
| 39 | + |
| 40 | + - name: Remove exec_depend |
| 41 | + uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1 |
| 42 | + |
| 43 | + - name: Get modified packages |
| 44 | + id: get-modified-packages |
| 45 | + uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1 |
| 46 | + |
| 47 | + - name: Build |
| 48 | + if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }} |
| 49 | + uses: autowarefoundation/autoware-github-actions/colcon-build@v1 |
| 50 | + with: |
| 51 | + rosdistro: ${{ matrix.rosdistro }} |
| 52 | + target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }} |
| 53 | + build-depends-repos: ${{ matrix.build-depends-repos }} |
| 54 | + |
| 55 | + - name: Test |
| 56 | + if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }} |
| 57 | + uses: autowarefoundation/autoware-github-actions/colcon-test@v1 |
| 58 | + with: |
| 59 | + rosdistro: ${{ matrix.rosdistro }} |
| 60 | + target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }} |
| 61 | + build-depends-repos: ${{ matrix.build-depends-repos }} |
0 commit comments