зеркало из https://github.com/github/codeql.git
Swift: add `git lfs` installation to codespace configuration
This commit is contained in:
Родитель
d675304703
Коммит
5c7bbc0287
|
@ -3,6 +3,16 @@ set -xe
|
||||||
BAZELISK_VERSION=v1.12.0
|
BAZELISK_VERSION=v1.12.0
|
||||||
BAZELISK_DOWNLOAD_SHA=6b0bcb2ea15bca16fffabe6fda75803440375354c085480fe361d2cbf32501db
|
BAZELISK_DOWNLOAD_SHA=6b0bcb2ea15bca16fffabe6fda75803440375354c085480fe361d2cbf32501db
|
||||||
|
|
||||||
|
# install git lfs apt source
|
||||||
|
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
||||||
|
|
||||||
|
# install gh apt source
|
||||||
|
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
|
||||||
|
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
|
||||||
|
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
|
||||||
|
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
|
||||||
|
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
apt-get -y install --no-install-recommends \
|
apt-get -y install --no-install-recommends \
|
||||||
|
@ -10,7 +20,9 @@ apt-get -y install --no-install-recommends \
|
||||||
uuid-dev \
|
uuid-dev \
|
||||||
python3-distutils \
|
python3-distutils \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
bash-completion
|
bash-completion \
|
||||||
|
git-lfs \
|
||||||
|
gh
|
||||||
|
|
||||||
# Install Bazel
|
# Install Bazel
|
||||||
curl -fSsL -o /usr/local/bin/bazelisk https://github.com/bazelbuild/bazelisk/releases/download/${BAZELISK_VERSION}/bazelisk-linux-amd64
|
curl -fSsL -o /usr/local/bin/bazelisk https://github.com/bazelbuild/bazelisk/releases/download/${BAZELISK_VERSION}/bazelisk-linux-amd64
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
|
git lfs install
|
||||||
|
|
||||||
# add the workspace to the codeql search path
|
# add the workspace to the codeql search path
|
||||||
mkdir -p /home/vscode/.config/codeql
|
mkdir -p /home/vscode/.config/codeql
|
||||||
echo "--search-path /workspaces/codeql" > /home/vscode/.config/codeql/config
|
echo "--search-path /workspaces/codeql" > /home/vscode/.config/codeql/config
|
||||||
|
|
Загрузка…
Ссылка в новой задаче