mirror of
https://github.com/expo/explore.git
synced 2026-11-15 17:32:23 -10:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a436e8f72 |
No files matched your search
@@ -85,10 +85,20 @@ jobs:
|
|||||||
- *install-explore
|
- *install-explore
|
||||||
- name: Install the launch recording decoder
|
- name: Install the launch recording decoder
|
||||||
shell: bash
|
shell: bash
|
||||||
# Launch recordings (capture.launch) are decoded with ffmpeg; GitHub's Ubuntu runners do not ship it.
|
# 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
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
command -v ffmpeg > /dev/null || { sudo apt-get update -qq && sudo apt-get install -y -qq --no-install-recommends ffmpeg > /dev/null; }
|
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
|
||||||
ffmpeg -version | head -1
|
ffmpeg -version | head -1
|
||||||
- name: Verify deterministic source planning
|
- name: Verify deterministic source planning
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -122,10 +122,20 @@ jobs:
|
|||||||
- *install-explore
|
- *install-explore
|
||||||
- name: Install the launch recording decoder
|
- name: Install the launch recording decoder
|
||||||
shell: bash
|
shell: bash
|
||||||
# Launch recordings (capture.launch) are decoded with ffmpeg; GitHub's Ubuntu runners do not ship it.
|
# 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
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
command -v ffmpeg > /dev/null || { sudo apt-get update -qq && sudo apt-get install -y -qq --no-install-recommends ffmpeg > /dev/null; }
|
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
|
||||||
ffmpeg -version | head -1
|
ffmpeg -version | head -1
|
||||||
- name: Verify deterministic source planning
|
- name: Verify deterministic source planning
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -111,10 +111,20 @@ jobs:
|
|||||||
with: { ref: '${{ steps.pr.outputs.head }}', path: app-head, fetch-depth: 0, persist-credentials: false }
|
with: { ref: '${{ steps.pr.outputs.head }}', path: app-head, fetch-depth: 0, persist-credentials: false }
|
||||||
- name: Install the launch recording decoder
|
- name: Install the launch recording decoder
|
||||||
shell: bash
|
shell: bash
|
||||||
# Launch recordings (capture.launch) are decoded with ffmpeg; GitHub's Ubuntu runners do not ship it.
|
# 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
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
command -v ffmpeg > /dev/null || { sudo apt-get update -qq && sudo apt-get install -y -qq --no-install-recommends ffmpeg > /dev/null; }
|
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
|
||||||
ffmpeg -version | head -1
|
ffmpeg -version | head -1
|
||||||
- name: Verify deterministic source planning
|
- name: Verify deterministic source planning
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in new issue
Block a user