Skip to content

Commit fbd98b0

Browse files
CI: add build job for latest Ubuntu (#24637)
* CI: add build job for latest Ubuntu * source * source env * scons cache * cache pyenv * fix key * source
1 parent 9cda2d6 commit fbd98b0

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

.github/workflows/selfdrive_tests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
run: |
9595
${{ env.RUN }} "scons -j$(nproc) --extras --test && \
9696
rm -rf /tmp/scons_cache/* && \
97-
scons -j$(nproc) --cache-populate"
97+
scons -j$(nproc) --extras --test --cache-populate"
9898
9999
#build_mac:
100100
# name: build macos

.github/workflows/tools_tests.yaml

+40
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,46 @@ env:
2121
GITHUB_REPOSITORY -e GITHUB_RUN_ID -v /tmp/comma_download_cache:/tmp/comma_download_cache $BASE_IMAGE /bin/sh -c
2222

2323
jobs:
24+
build_latest_ubuntu:
25+
name: build latest ubuntu
26+
runs-on: ubuntu-20.04
27+
timeout-minutes: 60
28+
steps:
29+
- uses: actions/checkout@v3
30+
with:
31+
submodules: true
32+
- name: Cache pyenv
33+
id: ubuntu-latest-pyenv
34+
uses: actions/cache@v3
35+
with:
36+
path: |
37+
~/.pyenv
38+
~/.local/share/virtualenvs/
39+
key: ubuntu-latest-python-${{ hashFiles('tools/ubuntu_setup.sh') }}-
40+
- name: Cache scons
41+
id: ubuntu-latest-scons
42+
uses: actions/cache@v3
43+
with:
44+
path: /tmp/scons_cache
45+
key: ubuntu-latest-scons-${{ hashFiles('.github/workflows/tools_test.yaml') }}-
46+
restore-keys: |
47+
ubuntu-latest-scons-${{ hashFiles('.github/workflows/tools_test.yaml') }}-
48+
ubuntu-latest-scons-
49+
50+
- name: tools/ubuntu_setup.sh
51+
run: |
52+
source tools/openpilot_env.sh
53+
tools/ubuntu_setup.sh
54+
- name: Build openpilot
55+
run: |
56+
source tools/openpilot_env.sh
57+
pipenv run scons -j$(nproc) --extras --test
58+
- name: Cleanup scons cache
59+
run: |
60+
source tools/openpilot_env.sh
61+
rm -rf /tmp/scons_cache/*
62+
pipenv run scons -j$(nproc) --extras --test --cache-populate
63+
2464
plotjuggler:
2565
name: plotjuggler
2666
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)