Some checks failed
REUSE Compliance Check / lint (push) Failing after 0s
Browser E2E / Test (push) Failing after 3s
Test / test (1.24) (push) Failing after 0s
Test / test-i386 (1.25) (push) Failing after 0s
Test / test-i386 (1.24) (push) Failing after 0s
Test / test-windows (1.25) (push) Failing after 0s
Test / test-windows (1.24) (push) Failing after 0s
Test / test (1.25) (push) Failing after 0s
Examples Tests / Test (push) Failing after 3s
Test / test-macos (1.25) (push) Failing after 0s
Test / test-macos (1.24) (push) Failing after 0s
Go mod tidy / tidy (push) Failing after 0s
Test / test-wasm (push) Failing after 0s
CodeQL / analyze (push) Failing after 1s
Fuzz / fuzz (push) Failing after 0s
32 lines
894 B
Bash
Executable File
32 lines
894 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#
|
|
# DO NOT EDIT THIS FILE
|
|
#
|
|
# It is automatically copied from https://github.com/pion/.goassets repository.
|
|
#
|
|
# If you want to update the shared CI config, send a PR to
|
|
# https://github.com/pion/.goassets instead of this repository.
|
|
#
|
|
# SPDX-FileCopyrightText: 2026 The Pion community <https://pion.ly>
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
set -eu
|
|
|
|
SCRIPT_PATH="$(realpath "$(dirname "$0")")"
|
|
GOASSETS_PATH="${SCRIPT_PATH}/.goassets"
|
|
|
|
GOASSETS_REF=${GOASSETS_REF:-main}
|
|
|
|
if [ -d "${GOASSETS_PATH}" ]; then
|
|
if ! git -C "${GOASSETS_PATH}" diff --exit-code; then
|
|
echo "${GOASSETS_PATH} has uncommitted changes" >&2
|
|
exit 1
|
|
fi
|
|
git -C "${GOASSETS_PATH}" fetch origin
|
|
git -C "${GOASSETS_PATH}" checkout ${GOASSETS_REF}
|
|
git -C "${GOASSETS_PATH}" reset --hard origin/${GOASSETS_REF}
|
|
else
|
|
git clone -b ${GOASSETS_REF} https://github.com/pion/.goassets.git "${GOASSETS_PATH}"
|
|
fi
|