Skip to content

Commit 150db86

Browse files
committed
feat: impl web surfing in tui && add settings tab.
Signed-off-by: wiseaidev <oss@wiseai.dev>
1 parent 05ee3c3 commit 150db86

14 files changed

Lines changed: 4584 additions & 909 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Linux Release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "v*"
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
build-linux:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v6
17+
18+
- name: Install Rust
19+
uses: dtolnay/rust-toolchain@stable
20+
21+
- name: Rust Cache
22+
uses: swatinem/rust-cache@v2
23+
24+
- name: Install dependencies
25+
run: |
26+
sudo apt-get update
27+
sudo apt-get install -y libssl-dev pkg-config
28+
29+
- name: Build
30+
run: cargo build --release --all-features
31+
32+
- name: Upload binaries to release
33+
env:
34+
GH_TOKEN: ${{ github.token }}
35+
run: |
36+
if [[ "${{ github.ref_type }}" == "tag" ]]; then
37+
TAG="${{ github.ref_name }}"
38+
else
39+
TAG=$(gh release list --limit 1 --json tagName --jq '.[0].tagName')
40+
fi
41+
42+
if [[ -z "$TAG" || "$TAG" == "null" ]]; then
43+
echo "No release tag found. Skipping upload."
44+
exit 0
45+
fi
46+
47+
echo "Uploading to release: $TAG"
48+
gh release upload "$TAG" target/release/ddg --clobber
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Windows Release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "v*"
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
build-windows:
14+
runs-on: windows-latest
15+
steps:
16+
- uses: actions/checkout@v6
17+
18+
- name: Install Rust
19+
uses: dtolnay/rust-toolchain@stable
20+
21+
- name: Rust Cache
22+
uses: swatinem/rust-cache@v2
23+
24+
- name: Build
25+
run: cargo build --release --all-features
26+
27+
- name: Upload binaries to release
28+
env:
29+
GH_TOKEN: ${{ github.token }}
30+
shell: pwsh
31+
run: |
32+
if ("${{ github.ref_type }}" -eq "tag") {
33+
$TAG = "${{ github.ref_name }}"
34+
} else {
35+
$TAG = gh release list --limit 1 --json tagName --jq '.[0].tagName'
36+
}
37+
38+
if (-not $TAG -or $TAG -eq "null") {
39+
Write-Host "No release tag found. Skipping upload."
40+
exit 0
41+
}
42+
43+
Write-Host "Uploading to release: $TAG"
44+
gh release upload $TAG target/release/ddg.exe --clobber

0 commit comments

Comments
 (0)