Skip to content

Commit 051ae5c

Browse files
committed
ci(gt): update
1 parent 2d55483 commit 051ae5c

27 files changed

+899
-84
lines changed

.cargo/config.toml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[target.x86_64-unknown-linux-gnu]
2+
linker = "x86_64-linux-gnu-gcc"
3+
rustflags = ["-C", "target-feature=+crt-static"]
4+
5+
[target.aarch64-unknown-linux-gnu]
6+
linker = "aarch64-linux-gnu-gcc"
7+
rustflags = ["-C", "target-feature=+crt-static"]
8+
9+
[target.riscv64gc-unknown-linux-gnu]
10+
linker = "riscv64-linux-gnu-gcc"
11+
rustflags = ["-C", "target-feature=+crt-static"]

.github/workflows/container.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ jobs:
4242
run: |-
4343
sudo apt-get update && sudo apt-get install make git gn ninja-build python3 python3-pip libgtk-3-dev gcc-aarch64-linux-gnu g++-aarch64-linux-gnu gcc-x86-64-linux-gnu g++-x86-64-linux-gnu gcc-riscv64-linux-gnu g++-riscv64-linux-gnu rustc upx -y
4444
rustup target add x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu riscv64gc-unknown-linux-gnu
45-
make release
45+
make linux
4646
mkdir -p release
4747
cp target/x86_64-unknown-linux-gnu/release/gt release/linux-x86_64-gt
4848
cp target/aarch64-unknown-linux-gnu/release/gt release/linux-aarch64-gt
49-
cp target/riscv64gc-unknown-linux-gnu/release/gt release/linux-riscv64-gt
5049
upx release/*
50+
cp target/riscv64gc-unknown-linux-gnu/release/gt release/linux-riscv64-gt
5151
5252
- name: Archive GT artifacts
5353
uses: actions/upload-artifact@v3

.gitignore

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
/cs/build
16-
/cs/release
17-
/cs/dep/_msquic/out
18-
/cs/dep/_google-webrtc/src/out
15+
/libcs/build
16+
/libcs/release
17+
/libcs/dep/_msquic/out
18+
/libcs/dep/_google-webrtc/src/out
1919
/target/
2020
.dockerignore
2121
.DS_Store

bin/Cargo.lock renamed to Cargo.lock

+54-46
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[workspace]
2+
members = ["bin"]
3+
resolver = "2"
4+
5+
[workspace.package]
6+
authors = ["Zhiyi Weng"]
7+
version = "2.1.6"
8+
edition = "2021"
9+
description = "Fast WebSocket(s)/HTTP(s)/TCP relay proxy with WebRTC P2P supports."
10+
11+
[patch.crates-io]
12+
webrtc = { git = "https://github.com/vyloy/webrtc.git", branch = "master" }
13+
rcgen = { git = "https://github.com/vyloy/rcgen.git", branch = "main" }
14+
x509-parser = { git = "https://github.com/vyloy/x509-parser.git", branch = "master" }

Dockerfile-client

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ ENV TZ=Asia/Shanghai
2323
RUN apt update && DEBIAN_FRONTEND=noninteractive TZ=Asia/Shanghai apt-get -y install tzdata ca-certificates && rm -rf /var/lib/apt/lists/*
2424

2525
COPY release/* /
26-
RUN cp /linux-`arch`-gt /usr/bin/gt && rm -f /*-gt
26+
RUN cp /linux-`arch`-gt /usr/bin/gt && ln -s /usr/bin/gt /usr/bin/client && rm -f /*-gt
2727

28-
ENTRYPOINT ["/usr/bin/gt", "manager", "-c", "/opt/config/aonetwork-client.yml"]
28+
ENTRYPOINT ["/usr/bin/gt", "client", "-c", "/opt/config/aonetwork-client.yml"]

0 commit comments

Comments
 (0)