Move cross_compile workflow to repo root and support manual dispatch
This commit is contained in:
+6
-6
@@ -42,8 +42,8 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform: [rk3588]
|
platform: ${{ github.event_name == 'workflow_dispatch' && fromJSON(format('["{0}"]', inputs.platform)) || fromJSON('["rk3588"]') }}
|
||||||
ros_distro: [rolling]
|
ros_distro: ${{ github.event_name == 'workflow_dispatch' && fromJSON(format('["{0}"]', inputs.ros_distro)) || fromJSON('["rolling"]') }}
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -67,7 +67,7 @@ jobs:
|
|||||||
# ── Stage 1: Build base image ──────────────────────────────────────
|
# ── Stage 1: Build base image ──────────────────────────────────────
|
||||||
- name: Build cc-base
|
- name: Build cc-base
|
||||||
run: |
|
run: |
|
||||||
docker compose build cc-base
|
docker compose -f cross_compile/compose.yaml build cc-base
|
||||||
|
|
||||||
- name: Push cc-base
|
- name: Push cc-base
|
||||||
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.push_images)
|
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.push_images)
|
||||||
@@ -79,7 +79,7 @@ jobs:
|
|||||||
# ── Stage 2: Build toolchain image per platform ────────────────────
|
# ── Stage 2: Build toolchain image per platform ────────────────────
|
||||||
- name: Build cc-toolchain (${{ matrix.platform }})
|
- name: Build cc-toolchain (${{ matrix.platform }})
|
||||||
run: |
|
run: |
|
||||||
PLATFORM=${{ matrix.platform }} docker compose build cc-toolchain
|
PLATFORM=${{ matrix.platform }} docker compose -f cross_compile/compose.yaml build cc-toolchain
|
||||||
env:
|
env:
|
||||||
BUILDKIT_INLINE_CACHE: "1"
|
BUILDKIT_INLINE_CACHE: "1"
|
||||||
|
|
||||||
@@ -93,7 +93,7 @@ jobs:
|
|||||||
# ── Stage 3: Build vendor packages ─────────────────────────────────
|
# ── Stage 3: Build vendor packages ─────────────────────────────────
|
||||||
- name: Build vendor-packages (${{ matrix.platform }})
|
- name: Build vendor-packages (${{ matrix.platform }})
|
||||||
run: |
|
run: |
|
||||||
PLATFORM=${{ matrix.platform }} docker compose build vendor-packages
|
PLATFORM=${{ matrix.platform }} docker compose -f cross_compile/compose.yaml build vendor-packages
|
||||||
env:
|
env:
|
||||||
BUILDKIT_INLINE_CACHE: "1"
|
BUILDKIT_INLINE_CACHE: "1"
|
||||||
|
|
||||||
@@ -107,7 +107,7 @@ jobs:
|
|||||||
# ── Stage 4: Build ROS 2 per distro ────────────────────────────────
|
# ── Stage 4: Build ROS 2 per distro ────────────────────────────────
|
||||||
- name: Build ROS 2 (${{ matrix.ros_distro }})
|
- name: Build ROS 2 (${{ matrix.ros_distro }})
|
||||||
run: |
|
run: |
|
||||||
PLATFORM=${{ matrix.platform }} ROS_DISTRO=${{ matrix.ros_distro }} docker compose build ros2
|
PLATFORM=${{ matrix.platform }} ROS_DISTRO=${{ matrix.ros_distro }} docker compose -f cross_compile/compose.yaml build ros2
|
||||||
env:
|
env:
|
||||||
BUILDKIT_INLINE_CACHE: "1"
|
BUILDKIT_INLINE_CACHE: "1"
|
||||||
|
|
||||||
Reference in New Issue
Block a user