-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
81 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,83 +2,83 @@ name: Build | |
on: [push] | ||
|
||
jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Install ROS Tooling | ||
# uses: ros-tooling/[email protected] | ||
# with: | ||
# required-ros-distributions: iron | ||
|
||
# - name: Checkout code | ||
# uses: actions/checkout@v2 | ||
|
||
# - name: Install Pangolin | ||
# run: | | ||
# mkdir thirdparty && cd thirdparty | ||
# git clone --recursive https://github.com/stevenlovegrove/Pangolin.git --depth 1 | ||
# cd Pangolin | ||
# yes | ./scripts/install_prerequisites.sh required | ||
# cmake -B build | ||
# cmake --build build -j 4 | ||
# sudo cmake --install build | ||
|
||
# - name: Install cv_bridge | ||
# run: sudo apt install -y ros-iron-cv-bridge | ||
|
||
# - name: Install interactive_markers | ||
# run: sudo apt install -y ros-iron-interactive-markers | ||
|
||
# - name: Build Project | ||
# uses: ros-tooling/[email protected] | ||
# with: | ||
# target-ros2-distro: iron | ||
# skip-tests: true | ||
|
||
build-docker: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
DOCKER_IMAGE: joshuabird/part_ii_project | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
DOCKER_TARGET_PLATFORM: linux/arm64 | ||
PROGRESS_NO_TRUNC: 1 | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v1 | ||
|
||
- name: Set up Docker Buildx | ||
uses: crazy-max/ghaction-docker-buildx@v1 | ||
with: | ||
version: latest | ||
|
||
- name: Prepare | ||
if: success() | ||
id: prepare | ||
run: | | ||
echo ::set-output name=docker_platform::${DOCKER_TARGET_PLATFORM} | ||
echo ::set-output name=docker_image::${DOCKER_IMAGE} | ||
- name: Docker Login | ||
if: success() | ||
run: | | ||
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin | ||
- name: Pull latest image | ||
if: success() | ||
continue-on-error: true | ||
run: | | ||
docker pull ${{ steps.prepare.outputs.docker_image }}:latest | ||
- name: Run Buildx (push image) | ||
if: success() | ||
run: | | ||
docker buildx build \ | ||
--platform ${{ steps.prepare.outputs.docker_platform }} \ | ||
--tag ${{ steps.prepare.outputs.docker_image }}:latest \ | ||
--file ./Dockerfile \ | ||
--progress plain \ | ||
--output type=image,push=true . | ||
steps: | ||
- name: Install ROS Tooling | ||
uses: ros-tooling/[email protected] | ||
with: | ||
required-ros-distributions: iron | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Pangolin | ||
run: | | ||
mkdir thirdparty && cd thirdparty | ||
git clone --recursive https://github.com/stevenlovegrove/Pangolin.git --depth 1 | ||
cd Pangolin | ||
yes | ./scripts/install_prerequisites.sh required | ||
cmake -B build | ||
cmake --build build -j 4 | ||
sudo cmake --install build | ||
- name: Install cv_bridge | ||
run: sudo apt install -y ros-iron-cv-bridge | ||
|
||
- name: Install interactive_markers | ||
run: sudo apt install -y ros-iron-interactive-markers | ||
|
||
- name: Build Project | ||
uses: ros-tooling/[email protected] | ||
with: | ||
target-ros2-distro: iron | ||
skip-tests: true | ||
|
||
# build-docker: | ||
# runs-on: ubuntu-latest | ||
# env: | ||
# DOCKER_IMAGE: joshuabird/part_ii_project | ||
# DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
# DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
# DOCKER_TARGET_PLATFORM: linux/arm64 | ||
# PROGRESS_NO_TRUNC: 1 | ||
# steps: | ||
# - name: Checkout the code | ||
# uses: actions/checkout@v1 | ||
|
||
# - name: Set up Docker Buildx | ||
# uses: crazy-max/ghaction-docker-buildx@v1 | ||
# with: | ||
# version: latest | ||
|
||
# - name: Prepare | ||
# if: success() | ||
# id: prepare | ||
# run: | | ||
# echo ::set-output name=docker_platform::${DOCKER_TARGET_PLATFORM} | ||
# echo ::set-output name=docker_image::${DOCKER_IMAGE} | ||
|
||
# - name: Docker Login | ||
# if: success() | ||
# run: | | ||
# echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin | ||
|
||
# - name: Pull latest image | ||
# if: success() | ||
# continue-on-error: true | ||
# run: | | ||
# docker pull ${{ steps.prepare.outputs.docker_image }}:latest | ||
|
||
# - name: Run Buildx (push image) | ||
# if: success() | ||
# run: | | ||
# docker buildx build \ | ||
# --platform ${{ steps.prepare.outputs.docker_platform }} \ | ||
# --tag ${{ steps.prepare.outputs.docker_image }}:latest \ | ||
# --file ./Dockerfile \ | ||
# --progress plain \ | ||
# --output type=image,push=true . | ||
|
||
build-nvidia-jetson-docker: | ||
runs-on: ubuntu-latest | ||
|
@@ -109,11 +109,11 @@ jobs: | |
run: | | ||
echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin | ||
- name: Pull latest image | ||
if: success() | ||
continue-on-error: true | ||
run: | | ||
docker pull --platform ${{ steps.prepare.outputs.docker_platform }} ${{ steps.prepare.outputs.docker_image }}:latest | ||
# - name: Pull latest image | ||
# if: success() | ||
# continue-on-error: true | ||
# run: | | ||
# docker pull --platform ${{ steps.prepare.outputs.docker_platform }} ${{ steps.prepare.outputs.docker_image }}:latest | ||
|
||
- name: Run Buildx (push image) | ||
if: success() | ||
|