|
|
|
@ -41,6 +41,8 @@ jobs: |
|
|
|
|
- name: Build devel |
|
|
|
|
run: TARGET_DIR=$STRIPPED_DIR release/build_devel.sh |
|
|
|
|
- uses: ./.github/workflows/setup |
|
|
|
|
with: |
|
|
|
|
save-cache: true |
|
|
|
|
- name: Check submodules |
|
|
|
|
if: github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot' |
|
|
|
|
run: release/check-submodules.sh |
|
|
|
@ -71,8 +73,6 @@ jobs: |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- uses: ./.github/workflows/setup |
|
|
|
|
with: |
|
|
|
|
save-cache: true |
|
|
|
|
- name: Build openpilot with all flags |
|
|
|
|
run: ${{ env.RUN }} "scons -j$(nproc) --extras && release/check-dirty.sh" |
|
|
|
|
- name: Cleanup scons cache |
|
|
|
@ -137,29 +137,6 @@ jobs: |
|
|
|
|
# done |
|
|
|
|
# comm -13 <(echo "$EXISTING_CELLAR") <(echo "$new_cellar") | tee ~/github_brew_cache_entries.txt |
|
|
|
|
|
|
|
|
|
build_webcam: |
|
|
|
|
name: build webcam |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|
timeout-minutes: 90 |
|
|
|
|
env: |
|
|
|
|
IMAGE_NAME: openpilotwebcamci |
|
|
|
|
steps: |
|
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
with: |
|
|
|
|
submodules: true |
|
|
|
|
- uses: ./.github/workflows/setup |
|
|
|
|
- name: Build Docker image |
|
|
|
|
run: | |
|
|
|
|
docker pull $DOCKER_REGISTRY/$IMAGE_NAME:latest || true |
|
|
|
|
docker build --cache-from $DOCKER_REGISTRY/$IMAGE_NAME:latest -t $DOCKER_REGISTRY/$IMAGE_NAME:latest -f tools/webcam/Dockerfile . |
|
|
|
|
- name: Build openpilot |
|
|
|
|
run: docker run --shm-size 1G --rm -v $PWD:/tmp/openpilot -e PYTHONPATH=/tmp/openpilot $DOCKER_REGISTRY/$IMAGE_NAME /bin/sh -c "cd /tmp/openpilot && USE_WEBCAM=1 scons -j$(nproc)" |
|
|
|
|
- name: Push to container registry |
|
|
|
|
if: github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot' |
|
|
|
|
run: | |
|
|
|
|
$DOCKER_LOGIN |
|
|
|
|
docker push $DOCKER_REGISTRY/$IMAGE_NAME:latest |
|
|
|
|
|
|
|
|
|
docker_push: |
|
|
|
|
name: docker push |
|
|
|
|
runs-on: ubuntu-20.04 |
|
|
|
|