Skip to content

Commit e108e84

Browse files
authored
Create build-arm64-native.yml
1 parent 1a8e218 commit e108e84

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Native ARM64 Build for ChatGPT
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build-arm64:
8+
runs-on: ubuntu-22.04 # GitHub ARM64 native runner
9+
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 18.x
18+
19+
- name: Install Rust toolchain and ARM64 target
20+
run: |
21+
curl https://sh.rustup.rs -sSf | sh -s -- -y
22+
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
23+
~/.cargo/bin/rustup target add aarch64-unknown-linux-gnu
24+
25+
- name: Install system dependencies
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install -y \
29+
libwebkit2gtk-4.0-dev \
30+
build-essential \
31+
libssl-dev libgtk-3-dev \
32+
libayatana-appindicator3-dev \
33+
librsvg2-dev \
34+
libglib2.0-dev \
35+
libgdk-pixbuf2.0-dev \
36+
cmake curl git \
37+
pkg-config python3 \
38+
nodejs npm
39+
40+
- name: Install frontend dependencies
41+
run: npm install
42+
43+
- name: Build ChatGPT with Tauri for ARM64
44+
run: |
45+
~/.cargo/bin/cargo build --release --target aarch64-unknown-linux-gnu
46+
npm run tauri build -- --target aarch64-unknown-linux-gnu
47+
48+
- name: Upload build artifacts
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: chatgpt-linux-arm64
52+
path: src-tauri/target/aarch64-unknown-linux-gnu/release/bundle

0 commit comments

Comments
 (0)