Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/use arm64 runner #385

Merged
merged 5 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions .github/workflows/deploy_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,6 @@ jobs:
id: check_branch
run: |
echo "name=exist::$(git ls-remote --heads https://github.com/OUXT-Polaris/${{ matrix.package_name }}.git workflow/sync | wc -l)" >> "$GITHUB_OUTPUT"
- name: Count changes
id: changes
run: |
git add -N .
echo "name=count::$(git diff --name-only | wc -l)" >> "$GITHUB_OUTPUT"
- name: Check if branch exists
id: check_branch_exist
run: |
Expand All @@ -120,17 +115,9 @@ jobs:
else
echo "exist=false" >> "$GITHUB_OUTPUT"
fi
- name: Delete old branch
if: steps.check_branch_exist.outputs.exist == 'true'
run: |
git push origin --delete workflow/sync || true
- name: Print deleted branch
if: steps.check_branch_exist.outputs.exist == 'true'
run: |
echo "Deleted branch workflow/sync"
- uses: peter-evans/create-pull-request@v3
id: create_pull_request
if: steps.changes.outputs.count > 0
if: steps.check_branch_exist.outputs.exist == 'false'
with:
token: ${{ secrets.WAMV_TAN_BOT_SECRET }}
commit-message: Setup workflow
Expand Down
56 changes: 27 additions & 29 deletions .github/workflows/docker_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,32 +93,30 @@ jobs:
with:
docker_username: ${{ secrets.DOCKER_USERNAME }}
docker_password: ${{ secrets.DOCKER_PASSWORD }}
# wamv:
# needs: export_wamv_repos
# name: build and push wamvtan/wamv
# runs-on: ubuntu-22.04
# timeout-minutes: 360
# strategy:
# matrix:
# module: ["perception", "control", "drivers", "localization", "planning"]
# include:
# - platform: "linux/arm64/v8"
# base_image: docker.io/hakuturu583/cuda_ros:lt4-humble-cuda-12.2.2-devel
# - platform: "linux/amd64"
# base_image: docker.io/hakuturu583/cuda_ros:humble-cuda-12.2.0-devel
# steps:
# - uses: actions/checkout@v4
# - uses: ./.github/workflows/actions/cleanup_runner
# - uses: actions/download-artifact@v4
# with:
# name: repos_file_${{ matrix.module }}
# path: ./.github/workflows/docker/wamv/repos
# - run: ls ./.github/workflows/docker/wamv/repos
# - run: cat ./.github/workflows/docker/wamv/repos/packages_exact.repos
# - uses: ./.github/workflows/docker/wamv
# with:
# docker_username: ${{ secrets.DOCKER_USERNAME }}
# docker_password: ${{ secrets.DOCKER_PASSWORD }}
# module: ${{ matrix.module }}
# platform: ${{ matrix.platform }}
# base_image: ${{ matrix.base_image }}
wamv:
needs: export_wamv_repos
name: build and push wamvtan/wamv
runs-on: ubuntu-22.04-arm
timeout-minutes: 360
strategy:
matrix:
module: ["perception", "control", "drivers", "localization", "planning"]
include:
- platform: "linux/arm64/v8"
base_image: docker.io/hakuturu583/cuda_ros:lt4-humble-cuda-12.2.2-devel
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/cleanup_runner
- uses: actions/download-artifact@v4
with:
name: repos_file_${{ matrix.module }}
path: ./.github/workflows/docker/wamv/repos
- run: ls ./.github/workflows/docker/wamv/repos
- run: cat ./.github/workflows/docker/wamv/repos/packages_exact.repos
- uses: ./.github/workflows/docker/wamv
with:
docker_username: ${{ secrets.DOCKER_USERNAME }}
docker_password: ${{ secrets.DOCKER_PASSWORD }}
module: ${{ matrix.module }}
platform: ${{ matrix.platform }}
base_image: ${{ matrix.base_image }}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"board": {
"active_layer": 0,
"active_layer": 31,
"active_layer_preset": "All Layers",
"auto_track_width": true,
"hidden_netclasses": [],
Expand Down
Loading