name: 'openpilot env setup' inputs: save-cache: default: false required: false runs: using: "composite" steps: # do this after checkout to ensure our custom LFS config is used to pull from GitLab - shell: bash run: git lfs pull # build cache - id: date shell: bash run: echo "::set-output name=date::$(git log -1 --pretty='format:%cd' --date=format:'%Y-%m-%d')" - shell: bash run: echo "${{ steps.date.outputs.date }}" - shell: bash run: echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV if: github.ref != 'refs/heads/master' || inputs.save-cache == 'false' - id: scons-cache # TODO: change the version to the released version # when https://github.com/actions/cache/pull/489 (or 571) is merged. uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b with: path: /tmp/scons_cache key: scons-${{ steps.date.outputs.date }}-${{ github.sha }} restore-keys: | scons-${{ steps.date.outputs.date }}- scons- # build our docker image - shell: bash run: eval ${{ env.BUILD }}