Skip to content

Commit 07e8870

Browse files
committed
first public version
0 parents  commit 07e8870

18 files changed

+4028
-0
lines changed

.github/workflows/rust.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: tgcc_client
2+
on:
3+
push:
4+
tags:
5+
- "v*" # 只有推送以 v 开头的 tag 时才触发,比如 v1.0.0
6+
7+
permissions:
8+
contents: write
9+
10+
env:
11+
CARGO_TERM_COLOR: always
12+
13+
jobs:
14+
build:
15+
runs-on: windows-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Install Rust
22+
uses: actions-rs/toolchain@v1
23+
with:
24+
toolchain: stable
25+
target: x86_64-pc-windows-msvc
26+
override: true
27+
28+
- name: Build (Release)
29+
run: cargo build --release --verbose
30+
31+
- name: Package binary
32+
run: |
33+
mkdir artifact
34+
copy target\release\tgcc_client.exe artifact\
35+
cd artifact
36+
7z a ../tgcc_client-windows-x64.zip *
37+
38+
- name: Create GitHub Release
39+
uses: softprops/action-gh-release@v2
40+
with:
41+
files: tgcc_client-windows-x64.zip
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
output_dir
2+
output_dir/*
3+
target/*
4+
target

0 commit comments

Comments
 (0)