Skip to content

ci(build-and-test-differential): increase free disk space #32093

ci(build-and-test-differential): increase free disk space

ci(build-and-test-differential): increase free disk space #32093

name: build-and-test-differential
on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
env:
CC: /usr/lib/ccache/gcc
CXX: /usr/lib/ccache/g++
DOCKER_RUN_NO_BASH: docker run --shm-size 1G \

Check failure on line 14 in .github/workflows/build-and-test-differential.yaml

View workflow run for this annotation

GitHub Actions / build-and-test-differential

Invalid workflow file

The workflow is not valid. .github/workflows/build-and-test-differential.yaml (Line: 14, Col: 23): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.container .github/workflows/build-and-test-differential.yaml (Line: 18, Col: 15): Unrecognized named-value: 'DOCKER_RUN_NO_BASH'. Located at position 1 within expression: DOCKER_RUN_NO_BASH
-v ${{ github.workspace }}:/workspace \
-w /workspace \
${{ matrix.container }}${{ matrix.container-suffix }}
DOCKER_RUN: ${{ DOCKER_RUN_NO_BASH }} \
/bin/bash -c
jobs:
build-and-test-differential:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rosdistro:
- humble
container-suffix:
- -cuda
include:
- rosdistro: humble
container: ghcr.io/autowarefoundation/autoware:latest-prebuilt
build-depends-repos: build_depends.repos
steps:
- name: Set PR fetch depth
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"
- name: Checkout PR branch and all PR commits
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
- name: Show disk space before the tasks
run: df -h
- name: Show current dir
run: ls -alF
- name: Show env vars
run: printenv
- name: tree
run: tree $HOME
- name: Remove exec_depend
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
- name: Get modified packages
id: get-modified-packages
uses: ./.github/actions/get-modified-packages-docker
# - name: docker run
# run: docker run --shm-size 1G \
# -v ${{ github.workspace }}:/workspace \
# -w /workspace \
# ${{ matrix.container }}${{ matrix.container-suffix }} \
# /bin/bash -c \
# - name: Docker
# run: |
# docker pull ${{ matrix.container }}${{ matrix.container-suffix }}
# docker run -it ${{ matrix.container }}${{ matrix.container-suffix }} /bin/bash