This repository has been archived by the owner on Dec 16, 2023. It is now read-only.
forked from commaai/openpilot
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: 'openpilot env setup, with retry on failure' | ||
|
||
inputs: | ||
git_lfs: | ||
description: 'Whether or not to pull the git lfs' | ||
required: false | ||
default: 'true' | ||
cache_key_prefix: | ||
description: 'Prefix for caching key' | ||
required: false | ||
default: 'scons_x86_64' | ||
|
||
env: | ||
SLEEP_TIME: 30 # Time to sleep between retries | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- id: setup1 | ||
uses: ./.github/workflows/setup | ||
continue-on-error: true | ||
with: | ||
git_lfs: ${{ inputs.git_lfs }} | ||
cache_key_prefix: ${{ inputs.cache_key_prefix }} | ||
is_retried: true | ||
- if: steps.setup1.outcome == 'failure' | ||
shell: bash | ||
run: sleep ${{ env.SLEEP_TIME }} | ||
- id: setup2 | ||
if: steps.setup1.outcome == 'failure' | ||
uses: ./.github/workflows/setup | ||
continue-on-error: true | ||
with: | ||
git_lfs: ${{ inputs.git_lfs }} | ||
cache_key_prefix: ${{ inputs.cache_key_prefix }} | ||
is_retried: true | ||
- if: steps.setup2.outcome == 'failure' | ||
shell: bash | ||
run: sleep ${{ env.SLEEP_TIME }} | ||
- id: setup3 | ||
if: steps.setup2.outcome == 'failure' | ||
uses: ./.github/workflows/setup | ||
with: | ||
git_lfs: ${{ inputs.git_lfs }} | ||
cache_key_prefix: ${{ inputs.cache_key_prefix }} | ||
is_retried: true |