Skip to content

Commit f7142db

Browse files
authored
Merge branch 'EasyTier:main' into main
2 parents e6ee26a + ffa08d1 commit f7142db

49 files changed

Lines changed: 1139 additions & 346 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/core.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
concurrent_skipping: 'same_content_newer'
3131
skip_after_successful_duplicate: 'true'
3232
cancel_others: 'true'
33-
paths: '["Cargo.toml", "Cargo.lock", "easytier/**", ".github/workflows/core.yml", ".github/workflows/install_rust.sh"]'
33+
paths: '["Cargo.toml", "Cargo.lock", "easytier/**", ".github/workflows/core.yml", ".github/workflows/install_rust.sh", "easytier-web/**"]'
3434
build_web:
3535
runs-on: ubuntu-latest
3636
needs: pre_job
@@ -239,6 +239,16 @@ jobs:
239239
mv ./target/$TARGET/release/easytier-web ./target/$TARGET/release/easytier-web-embed
240240
cargo build --release --verbose --target $TARGET --features=mimalloc
241241
242+
mkdir -p built-bins/$TARGET/release/
243+
mv ./target/$TARGET/release/easytier-web-embed ./built-bins/$TARGET/release/easytier-web-embed
244+
mv ./target/$TARGET/release/easytier-web ./built-bins/$TARGET/release/easytier-web
245+
mv ./target/$TARGET/release/easytier-core ./built-bins/$TARGET/release/easytier-core
246+
mv ./target/$TARGET/release/easytier-cli ./built-bins/$TARGET/release/easytier-cli
247+
248+
# remove dirs to avoid copy many files back
249+
rm -rf ./target ~/.cargo
250+
mv ./built-bins ./target
251+
242252
- name: Compress
243253
run: |
244254
mkdir -p ./artifacts/objects/

.github/workflows/gui.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
concurrent_skipping: 'same_content_newer'
3030
skip_after_successful_duplicate: 'true'
3131
cancel_others: 'true'
32-
paths: '["Cargo.toml", "Cargo.lock", "easytier/**", "easytier-gui/**", ".github/workflows/gui.yml", ".github/workflows/install_rust.sh", ".github/workflows/install_gui_dep.sh"]'
32+
paths: '["Cargo.toml", "Cargo.lock", "easytier/**", "easytier-gui/**", ".github/workflows/gui.yml", ".github/workflows/install_rust.sh", ".github/workflows/install_gui_dep.sh", "easytier-web/frontend-lib/**"]'
3333
build-gui:
3434
strategy:
3535
fail-fast: false

.github/workflows/ohos.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: EasyTier OHOS
33
on:
44
push:
55
branches: ["develop", "main", "releases/**"]
6+
tags:
7+
- 'v*'
8+
- '!*-pre'
69
pull_request:
710
branches: ["develop", "main"]
811
workflow_dispatch:
@@ -66,8 +69,8 @@ jobs:
6669
UPSTREAM_REPO="https://github.com/EasyTier/EasyTier.git"
6770

6871
git remote add upstream "$UPSTREAM_REPO" 2>/dev/null || true
69-
git fetch upstream --tags --force
70-
git fetch upstream main
72+
git fetch --unshallow upstream main || git fetch upstream main
73+
git fetch --tags upstream --force
7174

7275
# 读取 cargo 版本
7376
CARGO_VERSION=$(cargo metadata --format-version 1 --no-deps --manifest-path easytier/Cargo.toml \
@@ -142,7 +145,7 @@ jobs:
142145
EOF
143146
sudo chmod +x $OHOS_NDK_HOME/native/llvm/aarch64-unknown-linux-ohos-clang.sh
144147
145-
- name: Build
148+
- name: Build latest Har
146149
working-directory: ./easytier-contrib/easytier-ohrs
147150
run: |
148151
sudo apt-get install -y llvm clang lldb lld
@@ -157,13 +160,27 @@ jobs:
157160
ohrs artifact
158161
mv package.har easytier-ohrs.har
159162
163+
- name: Build Release Package
164+
if: startsWith(github.ref, 'refs/tags/')
165+
working-directory: ./easytier-contrib/easytier-ohrs
166+
run: |
167+
echo "🎉 Official Release detected. Building easytier-release..."
168+
TAG_NAME="${{ github.ref_name }}"
169+
TAG_VERSION="${TAG_NAME#v}"
170+
echo "Release Version: $TAG_VERSION"
171+
cd package
172+
jq --arg v "$TAG_VERSION" '.name = "easytier-release" | .version = $v' oh-package.json5 > oh-package.tmp.json5 && mv oh-package.tmp.json5 oh-package.json5
173+
cd ..
174+
ohrs build --release --arch aarch
175+
ohrs artifact
176+
mv package.har easytier-release.har
177+
160178
- name: Upload artifact
161179
uses: actions/upload-artifact@v4
162180
with:
163181
name: easytier-ohos
164182
path: |
165183
./easytier-contrib/easytier-ohrs/easytier-ohrs.har
166-
./easytier-contrib/easytier-ohrs/dist/arm64-v8a/libeasytier_ohrs.so
167184
retention-days: 5
168185
if-no-files-found: error
169186

@@ -196,4 +213,9 @@ jobs:
196213
printf '%s' "${{ secrets.CODEARTS_PRIVATE_OHPM }}" > ~/.ohpm/.ohpmrc
197214
ohpm config set strict_ssl false
198215
ohpm publish easytier-ohrs.har
216+
if [ -f "easytier-release.har" ]; then
217+
echo "🚀 Publishing Release package..."
218+
ohpm publish easytier-release.har
219+
fi
199220
curl --header "Content-Type: application/json" --request POST --data "{}" ${{ secrets.CODEARTS_WEBHOOKS }}
221+

Cargo.lock

Lines changed: 97 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

easytier-gui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"unplugin-vue-router": "^0.10.8",
5555
"uuid": "^10.0.0",
5656
"vite": "^5.4.8",
57-
"vite-plugin-vue-devtools": "^8.0.5",
57+
"vite-plugin-vue-devtools": "^7.4.6",
5858
"vite-plugin-vue-layouts": "^0.11.0",
5959
"vue-i18n": "^10.0.0",
6060
"vue-tsc": "^2.1.10"

easytier-gui/src-tauri/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ tauri-plugin-os = "2.3.0"
5757
uuid = "1.17.0"
5858
async-trait = "0.1.89"
5959

60+
url = { version = "2.5", features = ["serde"] }
61+
6062
[target.'cfg(target_os = "windows")'.dependencies]
6163
windows = { version = "0.52", features = ["Win32_Foundation", "Win32_UI_Shell", "Win32_UI_WindowsAndMessaging"] }
6264
winapi = { version = "0.3.9", features = ["securitybaseapi", "processthreadsapi"] }

0 commit comments

Comments
 (0)