-
Notifications
You must be signed in to change notification settings - Fork 664
72 lines (61 loc) · 1.95 KB
/
build-and-test-differential.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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: docker run --shm-size 1G \
# -v ${{ github.workspace }}:/workspace \
# -w /workspace
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
# with:
# docker-run: ${{ env.DOCKER_RUN }}
# - 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