Skip to content

Commit

Permalink
ci(gt): update
Browse files Browse the repository at this point in the history
  • Loading branch information
vyloy committed Feb 1, 2024
1 parent 2d55483 commit 04bf863
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: |-
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
rustup target add x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu riscv64gc-unknown-linux-gnu
make release
make linux
mkdir -p release
cp target/x86_64-unknown-linux-gnu/release/gt release/linux-x86_64-gt
cp target/aarch64-unknown-linux-gnu/release/gt release/linux-aarch64-gt
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile-client
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ ENV TZ=Asia/Shanghai
RUN apt update && DEBIAN_FRONTEND=noninteractive TZ=Asia/Shanghai apt-get -y install tzdata ca-certificates && rm -rf /var/lib/apt/lists/*

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

ENTRYPOINT ["/usr/bin/gt", "manager", "-c", "/opt/config/aonetwork-client.yml"]
ENTRYPOINT ["/usr/bin/gt", "client", "-c", "/opt/config/aonetwork-client.yml"]
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
linux-release:
linux:
cd ./cs && TARGET=aarch64-linux-gnu GOOS=linux GOARCH=arm64 make release_lib
cargo build --target aarch64-unknown-linux-gnu -r
cd ./cs && TARGET=x86_64-linux-gnu GOOS=linux GOARCH=amd64 make release_lib
cargo build --target x86_64-unknown-linux-gnu -r
cd ./cs && TARGET=riscv64-linux-gnu GOOS=linux GOARCH=riscv64 make release_lib
cargo build --target riscv64gc-unknown-linux-gnu -r

mac-release:
mac:
cd ./cs && TARGET=aarch64-apple-darwin GOOS=darwin GOARCH=arm64 arch -arch arm64 make release_lib
cargo build --target aarch64-apple-darwin -r
cd ./cs && TARGET=x86_64-apple-darwin GOOS=darwin GOARCH=amd64 arch -arch x86_64 make release_lib
Expand Down
2 changes: 1 addition & 1 deletion entrypoint-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ options:
reconnectTimes: ${NETWORK_RECONNECTTIMES:-3}
EOF

exec /usr/bin/gt manager -c /opt/aonetwork-server.yml
exec /usr/bin/gt server -c /opt/aonetwork-server.yml

0 comments on commit 04bf863

Please sign in to comment.