Navigate on Chill Mode #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'compile openpilot' | |
on: | |
push: | |
branches: | |
- FrogPilot-Compile | |
inputs: | |
cache_key_prefix: | |
description: 'Prefix for caching key' | |
required: false | |
default: 'scons' | |
runs: | |
using: "composite" | |
steps: | |
- shell: bash | |
name: Build openpilot with all flags | |
run: | | |
${{ env.RUN }} "scons -j$(nproc)" | |
${{ env.RUN }} "release/check-dirty.sh" | |
- shell: bash | |
name: Cleanup scons cache and rebuild | |
run: | | |
${{ env.RUN }} "rm -rf /tmp/scons_cache/* && \ | |
scons -j$(nproc) --cache-populate" | |
- name: Save scons cache | |
uses: actions/cache/save@v3 | |
if: github.ref == 'refs/heads/master' | |
with: | |
path: .ci_cache/scons_cache | |
key: ${{ inputs.cache_key_prefix }}-${{ env.CACHE_COMMIT_DATE }}-${{ github.sha }} |