Skip to content

ci(health-check): maintain own buildkit cache per platform #3998

ci(health-check): maintain own buildkit cache per platform

ci(health-check): maintain own buildkit cache per platform #3998

Workflow file for this run

name: setup-universe
on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
jobs:
require-label:
uses: autowarefoundation/autoware-github-actions/.github/workflows/require-label.yaml@v1
with:
label: run:health-check
setup-universe:
needs: require-label
if: ${{ needs.require-label.outputs.result == 'true' }}
runs-on: [self-hosted, Linux, X64]
strategy:
fail-fast: false
matrix:
include:
- image: ubuntu:22.04
ros_distro: humble
- image: ubuntu:24.04
ros_distro: jazzy
container:
image: ${{ matrix.image }}
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Show disk space
if: always()
run: |
df -h
- name: Configure apt retries and mirror fallback
run: |
echo 'Acquire::Retries "5";' > /etc/apt/apt.conf.d/99-retries
echo 'Acquire::http::Timeout "30";' >> /etc/apt/apt.conf.d/99-retries
echo 'Acquire::https::Timeout "30";' >> /etc/apt/apt.conf.d/99-retries
printf 'http://azure.archive.ubuntu.com/ubuntu\tpriority:1\nhttp://archive.ubuntu.com/ubuntu\tpriority:2\n' > /etc/apt/ubuntu-mirrors.list
for f in /etc/apt/sources.list /etc/apt/sources.list.d/ubuntu.sources; do
if [ -f "$f" ]; then
sed -E -i 's|http://archive\.ubuntu\.com/ubuntu/?|mirror+file:///etc/apt/ubuntu-mirrors.list|g' "$f"
fi
done
- name: Install dependencies
run: |
apt-get update
apt-get install -y git sudo curl ca-certificates apt-utils
- name: Install tzdata non-interactively
run: |
DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
- name: Set git config
uses: autowarefoundation/autoware-github-actions/set-git-config@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run setup script
run: |
./setup-dev-env.sh --ros-distro ${{ matrix.ros_distro }} -y -v universe