From 1004ddad3000bb4046317ae1215351f09d4c7d51 Mon Sep 17 00:00:00 2001 From: Yutaka Kondo Date: Thu, 30 May 2024 23:28:21 +0900 Subject: [PATCH] vsc import on build-main workflows Signed-off-by: Yutaka Kondo --- .github/workflows/build-main-self-hosted.yaml | 16 ++++++++++++++++ .github/workflows/build-main.yaml | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/.github/workflows/build-main-self-hosted.yaml b/.github/workflows/build-main-self-hosted.yaml index 9e85f01bd3e..c0fbe3f21b6 100644 --- a/.github/workflows/build-main-self-hosted.yaml +++ b/.github/workflows/build-main-self-hosted.yaml @@ -44,9 +44,25 @@ jobs: - name: Check out repository uses: actions/checkout@v4 + - name: Install vcstool + run: | + sudo apt-get -y update + sudo apt-get -y install python3-pip + pip install --no-cache-dir vcstool + + - name: Set git config + uses: autowarefoundation/autoware-github-actions/set-git-config@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + - name: Free disk space uses: ./.github/actions/free-disk-space + - name: Run vcs import + run: | + mkdir src + vcs import src < autoware.repos + - name: Build 'autoware-universe' uses: ./.github/actions/docker-build-and-push with: diff --git a/.github/workflows/build-main.yaml b/.github/workflows/build-main.yaml index 1c8123f360e..5beada55314 100644 --- a/.github/workflows/build-main.yaml +++ b/.github/workflows/build-main.yaml @@ -39,9 +39,25 @@ jobs: - name: Check out repository uses: actions/checkout@v4 + - name: Install vcstool + run: | + sudo apt-get -y update + sudo apt-get -y install python3-pip + pip install --no-cache-dir vcstool + + - name: Set git config + uses: autowarefoundation/autoware-github-actions/set-git-config@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + - name: Free disk space uses: ./.github/actions/free-disk-space + - name: Run vcs import + run: | + mkdir src + vcs import src < autoware.repos + - name: Build 'autoware-universe' uses: ./.github/actions/docker-build-and-push with: