Skip to content

Commit

Permalink
ci: Avoid recompiling for building release image
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-caspers committed Oct 14, 2024
1 parent ca65ca7 commit 07c380e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ jobs:
push: never
- name: Verify no build induced changes in Cargo.lock
run: git diff && git diff --quiet -- Cargo.lock
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: ros-binaries
path: |
install/voraus-ros-bridge
voraus_interfaces/install/voraus_interfaces
8 changes: 3 additions & 5 deletions .github/workflows/ci_build_release_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Cargo build
uses: devcontainers/[email protected]
- name: Download ROS binaries from previous build step
uses: actions/download-artifact@v4
with:
cacheFrom: ghcr.io/vorausrobotik/voraus-ros-bridge-dev
runCmd: cargo ament-build --install-base install/voraus-ros-bridge -- --release
push: never
name: ros-binaries
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
Expand Down

0 comments on commit 07c380e

Please sign in to comment.