mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 19:23:56 +08:00
* arch specific tags * merge multiarch script * arm64 build and merge jobs * update tag script * casual ci test * change image to 2204 * docker -v test * arch specific naming * Remove test_buildjet * build -arch images only when CURRENT_ARCH_BUILD is set * support new tags in tag_multiarch * Toggle CURRENT_ARCH_BUILD on in ci * Docker common * Fix condition * Fix path to docker_common * Add more stuff to common * Add build_arm job * composite job for building * Run checkout before build composite * add shell arg * move timeout to selfdrive_tests * TARGET ARCHITECTURE var * Support TARGET_ARCHITECTURE in workflow * Rewrite to Single build job with matrix * Remove shebang from docker_common * Attempt for fix build matrix * Remove setup arch * build matrix for docker push * Use 2vcpu for arm build * 2vcpu for docker_push too * temporarly unlock docker_push * Remove requirement for target arch when pushing * Unset target architecture in docker_push cl * fix sha tags * Rename action to compile-openpilot * move push_image line to tag_multiarch step * arch suffix for scons cache * cache_key_prefix for setup-with-retry * Re-disable docker_push on non-master * Add newlines
28 lines
778 B
YAML
28 lines
778 B
YAML
name: 'compile openpilot'
|
|
|
|
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 }}
|