Skip to content

Commit

Permalink
vcs import outside dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Yutaka Kondo <[email protected]>
  • Loading branch information
youtalk committed May 17, 2024
1 parent f4db0ed commit 9ecaf3c
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/docker-build-and-push-main-self-hosted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
docker-build-and-push-main-self-hosted:
needs: load-env
runs-on: [self-hosted, linux, ARM64]
container: ros:${{ needs.load-env.outputs.rosdistro }}
strategy:
fail-fast: false
matrix:
Expand All @@ -56,6 +57,26 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4

- name: Install pip for rosdep
run: |
sudo apt-get -y update
sudo apt-get -y install python3-pip
- name: Register AutonomouStuff repository
uses: autowarefoundation/autoware-github-actions/register-autonomoustuff-repository@v1
with:
rosdistro: ${{ needs.load-env.outputs.rosdistro }}

- name: Set git config
uses: autowarefoundation/autoware-github-actions/set-git-config@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Run vcs import
run: |
mkdir src
vcs import src < autoware.repos
- name: Free disk space
uses: ./.github/actions/free-disk-space

Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/docker-build-and-push-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
docker-build-and-push-main:
needs: load-env
runs-on: buildjet-16vcpu-ubuntu-2204

Check warning on line 27 in .github/workflows/docker-build-and-push-main.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (buildjet)

Check warning on line 27 in .github/workflows/docker-build-and-push-main.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (vcpu)
container: ros:${{ needs.load-env.outputs.rosdistro }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -58,6 +59,26 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4

- name: Install pip for rosdep
run: |
sudo apt-get -y update
sudo apt-get -y install python3-pip
- name: Register AutonomouStuff repository
uses: autowarefoundation/autoware-github-actions/register-autonomoustuff-repository@v1
with:
rosdistro: ${{ needs.load-env.outputs.rosdistro }}

- name: Set git config
uses: autowarefoundation/autoware-github-actions/set-git-config@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Run vcs import
run: |
mkdir src
vcs import src < autoware.repos
- name: Build 'autoware-openadk'
if: steps.author-check.outputs.author-found == 'true' || ${{ github.event_name == 'workflow_dispatch' }}
uses: ./.github/actions/docker-build-and-push
Expand Down

0 comments on commit 9ecaf3c

Please sign in to comment.