-
Notifications
You must be signed in to change notification settings - Fork 664
54 lines (45 loc) · 1.32 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
name: build-and-test-differential
on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
env:
CC: /usr/lib/ccache/gcc
CXX: /usr/lib/ccache/g++
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: Show env vars
run: tree ../
# - name: Docker
# run: |
# docker pull ${{ matrix.container }}${{ matrix.container-suffix }}
# docker run -it ${{ matrix.container }}${{ matrix.container-suffix }} /bin/bash