mirror of
https://github.com/expo/explore.git
synced 2026-11-15 13:18:16 -10:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e5a6626bde |
No files matched your search
@@ -85,20 +85,10 @@ jobs:
|
||||
- *install-explore
|
||||
- name: Install the launch recording decoder
|
||||
shell: bash
|
||||
# Launch recordings (capture.launch) are decoded with ffmpeg; GitHub's Ubuntu runners do not ship it. A package
|
||||
# mirror can stall without failing, so each apt-get call has network timeouts and a time limit, and a stalled
|
||||
# attempt is tried once more: the step fails in minutes rather than holding the job to its timeout.
|
||||
timeout-minutes: 10
|
||||
# Launch recordings (capture.launch) are decoded with ffmpeg; GitHub's Ubuntu runners do not ship it.
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if ! command -v ffmpeg > /dev/null; then
|
||||
apt=(sudo apt-get -qq -o Acquire::Retries=3 -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30 -o DPkg::Lock::Timeout=120)
|
||||
for attempt in 1 2; do
|
||||
if timeout 120 "${apt[@]}" update && timeout 120 "${apt[@]}" install -y --no-install-recommends ffmpeg > /dev/null; then break; fi
|
||||
if [ "$attempt" = 2 ]; then echo '::error title=LAUNCH_DECODER_INSTALL_FAILED::apt-get could not install ffmpeg; rerun the job.'; exit 1; fi
|
||||
echo "::warning title=LAUNCH_DECODER_INSTALL_RETRY::apt-get did not install ffmpeg on attempt $attempt; trying again."
|
||||
done
|
||||
fi
|
||||
command -v ffmpeg > /dev/null || { sudo apt-get update -qq && sudo apt-get install -y -qq --no-install-recommends ffmpeg > /dev/null; }
|
||||
ffmpeg -version | head -1
|
||||
- name: Verify deterministic source planning
|
||||
shell: bash
|
||||
|
||||
@@ -122,20 +122,10 @@ jobs:
|
||||
- *install-explore
|
||||
- name: Install the launch recording decoder
|
||||
shell: bash
|
||||
# Launch recordings (capture.launch) are decoded with ffmpeg; GitHub's Ubuntu runners do not ship it. A package
|
||||
# mirror can stall without failing, so each apt-get call has network timeouts and a time limit, and a stalled
|
||||
# attempt is tried once more: the step fails in minutes rather than holding the job to its timeout.
|
||||
timeout-minutes: 10
|
||||
# Launch recordings (capture.launch) are decoded with ffmpeg; GitHub's Ubuntu runners do not ship it.
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if ! command -v ffmpeg > /dev/null; then
|
||||
apt=(sudo apt-get -qq -o Acquire::Retries=3 -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30 -o DPkg::Lock::Timeout=120)
|
||||
for attempt in 1 2; do
|
||||
if timeout 120 "${apt[@]}" update && timeout 120 "${apt[@]}" install -y --no-install-recommends ffmpeg > /dev/null; then break; fi
|
||||
if [ "$attempt" = 2 ]; then echo '::error title=LAUNCH_DECODER_INSTALL_FAILED::apt-get could not install ffmpeg; rerun the job.'; exit 1; fi
|
||||
echo "::warning title=LAUNCH_DECODER_INSTALL_RETRY::apt-get did not install ffmpeg on attempt $attempt; trying again."
|
||||
done
|
||||
fi
|
||||
command -v ffmpeg > /dev/null || { sudo apt-get update -qq && sudo apt-get install -y -qq --no-install-recommends ffmpeg > /dev/null; }
|
||||
ffmpeg -version | head -1
|
||||
- name: Verify deterministic source planning
|
||||
env:
|
||||
|
||||
@@ -111,20 +111,10 @@ jobs:
|
||||
with: { ref: '${{ steps.pr.outputs.head }}', path: app-head, fetch-depth: 0, persist-credentials: false }
|
||||
- name: Install the launch recording decoder
|
||||
shell: bash
|
||||
# Launch recordings (capture.launch) are decoded with ffmpeg; GitHub's Ubuntu runners do not ship it. A package
|
||||
# mirror can stall without failing, so each apt-get call has network timeouts and a time limit, and a stalled
|
||||
# attempt is tried once more: the step fails in minutes rather than holding the job to its timeout.
|
||||
timeout-minutes: 10
|
||||
# Launch recordings (capture.launch) are decoded with ffmpeg; GitHub's Ubuntu runners do not ship it.
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if ! command -v ffmpeg > /dev/null; then
|
||||
apt=(sudo apt-get -qq -o Acquire::Retries=3 -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30 -o DPkg::Lock::Timeout=120)
|
||||
for attempt in 1 2; do
|
||||
if timeout 120 "${apt[@]}" update && timeout 120 "${apt[@]}" install -y --no-install-recommends ffmpeg > /dev/null; then break; fi
|
||||
if [ "$attempt" = 2 ]; then echo '::error title=LAUNCH_DECODER_INSTALL_FAILED::apt-get could not install ffmpeg; rerun the job.'; exit 1; fi
|
||||
echo "::warning title=LAUNCH_DECODER_INSTALL_RETRY::apt-get did not install ffmpeg on attempt $attempt; trying again."
|
||||
done
|
||||
fi
|
||||
command -v ffmpeg > /dev/null || { sudo apt-get update -qq && sudo apt-get install -y -qq --no-install-recommends ffmpeg > /dev/null; }
|
||||
ffmpeg -version | head -1
|
||||
- name: Verify deterministic source planning
|
||||
env:
|
||||
|
||||
Reference in new issue
Block a user