-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Electroid <[email protected]> Co-authored-by: Meghan Denny <[email protected]>
- Loading branch information
1 parent
4fedc41
commit 39d8ade
Showing
26 changed files
with
3,293 additions
and
684 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
ARG IMAGE=debian:11 | ||
FROM $IMAGE | ||
COPY ./scripts/bootstrap.sh /tmp/bootstrap.sh | ||
ENV CI=true | ||
RUN sh /tmp/bootstrap.sh && rm -rf /tmp/* | ||
WORKDIR /workspace/bun | ||
COPY bunfig.toml bunfig.toml | ||
COPY package.json package.json | ||
COPY CMakeLists.txt CMakeLists.txt | ||
COPY cmake/ cmake/ | ||
COPY scripts/ scripts/ | ||
COPY patches/ patches/ | ||
COPY *.zig ./ | ||
COPY src/ src/ | ||
COPY packages/ packages/ | ||
COPY test/ test/ | ||
RUN bun i | ||
RUN bun run build:ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/sh | ||
|
||
# This script sets the hostname of the current machine. | ||
|
||
execute() { | ||
echo "$ $@" >&2 | ||
if ! "$@"; then | ||
echo "Command failed: $@" >&2 | ||
exit 1 | ||
fi | ||
} | ||
|
||
main() { | ||
if [ "$#" -ne 1 ]; then | ||
echo "Usage: $0 <hostname>" >&2 | ||
exit 1 | ||
fi | ||
|
||
if [ -f "$(which hostnamectl)" ]; then | ||
execute hostnamectl set-hostname "$1" | ||
else | ||
echo "Error: hostnamectl is not installed." >&2 | ||
exit 1 | ||
fi | ||
} | ||
|
||
main "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
|
||
# This script starts tailscale on the current machine. | ||
|
||
execute() { | ||
echo "$ $@" >&2 | ||
if ! "$@"; then | ||
echo "Command failed: $@" >&2 | ||
exit 1 | ||
fi | ||
} | ||
|
||
main() { | ||
if [ "$#" -ne 1 ]; then | ||
echo "Usage: $0 <auth-key>" >&2 | ||
exit 1 | ||
fi | ||
|
||
execute tailscale up --reset --ssh --accept-risk=lose-ssh --auth-key="$1" | ||
} | ||
|
||
main "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR aarch64) | ||
set(ABI musl) | ||
|
||
set(CMAKE_C_COMPILER_WORKS ON) | ||
set(CMAKE_CXX_COMPILER_WORKS ON) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR aarch64) | ||
set(ABI gnu) | ||
|
||
set(CMAKE_C_COMPILER_WORKS ON) | ||
set(CMAKE_CXX_COMPILER_WORKS ON) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR x64) | ||
set(ENABLE_BASELINE ON) | ||
set(ABI gnu) | ||
|
||
set(CMAKE_C_COMPILER_WORKS ON) | ||
set(CMAKE_CXX_COMPILER_WORKS ON) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR x64) | ||
set(ENABLE_BASELINE ON) | ||
set(ABI musl) | ||
|
||
set(CMAKE_C_COMPILER_WORKS ON) | ||
set(CMAKE_CXX_COMPILER_WORKS ON) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR x64) | ||
set(ABI musl) | ||
|
||
set(CMAKE_C_COMPILER_WORKS ON) | ||
set(CMAKE_CXX_COMPILER_WORKS ON) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_PROCESSOR x64) | ||
set(ABI gnu) | ||
|
||
set(CMAKE_C_COMPILER_WORKS ON) | ||
set(CMAKE_CXX_COMPILER_WORKS ON) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.