mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 12:38:02 +00:00
bebe24ea77
This will allow us to compile debug builds of the remote-server for a different architecture than the one we are developing on. This also adds a CI step for building our remote server with minimal dependencies. Release Notes: - N/A
17 lines
295 B
Bash
Executable file
17 lines
295 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -xeuo pipefail
|
|
|
|
# if root or if sudo/unavailable, define an empty variable
|
|
if [ "$(id -u)" -eq 0 ]
|
|
then maysudo=''
|
|
else maysudo="$(command -v sudo || command -v doas || true)"
|
|
fi
|
|
|
|
deps=(
|
|
clang
|
|
)
|
|
|
|
$maysudo apt-get update
|
|
$maysudo apt-get install -y "${deps[@]}"
|
|
exit 0
|