0078c5e
commit 0078c5e
2 files changed
+35 -77
Showing 2 changed files+35-77
▼.github/workflows/build.yml
+0-77
| @@ -87,81 +87,4 @@ jobs: | ||
87 | 87 | src-tauri/target/release/bundle/macos/*.app |
88 | 88 | if-no-files-found: ignore |
89 | 89 | |
90 | - # Android build | |
91 | - android: | |
92 | - runs-on: ubuntu-latest | |
93 | - steps: | |
94 | - - uses: actions/checkout@v4 | |
95 | - | |
96 | - - name: Setup Bun | |
97 | - uses: oven-sh/setup-bun@v2 | |
98 | - | |
99 | - - name: Setup Java | |
100 | - uses: actions/setup-java@v4 | |
101 | - with: | |
102 | - distribution: 'temurin' | |
103 | - java-version: '17' | |
104 | - | |
105 | - - name: Setup Android SDK | |
106 | - uses: android-actions/setup-android@v3 | |
107 | - | |
108 | - - name: Install Rust | |
109 | - uses: dtolnay/rust-action@stable | |
110 | - with: | |
111 | - targets: aarch64-linux-android,armv7-linux-androideabi,x86_64-linux-android | |
112 | - | |
113 | - - name: Install dependencies | |
114 | - run: | | |
115 | - sudo apt-get update | |
116 | - sudo apt-get install -y libwebkit2gtk-4.1-dev | |
117 | - | |
118 | - - name: Install frontend dependencies | |
119 | - run: bun install | |
120 | - | |
121 | - - name: Install Tauri CLI | |
122 | - run: cargo install tauri-cli | |
123 | 90 | |
124 | - - name: Initialize Android | |
125 | - run: cargo tauri android init | |
126 | - | |
127 | - - name: Build Android APK | |
128 | - run: cargo tauri android build --apk | |
129 | - | |
130 | - - name: Upload Android APK | |
131 | - uses: actions/upload-artifact@v4 | |
132 | - with: | |
133 | - name: chandesk-android | |
134 | - path: src-tauri/gen/android/app/build/outputs/apk/**/*.apk | |
135 | - | |
136 | - # iOS build (requires macOS) | |
137 | - ios: | |
138 | - runs-on: macos-latest | |
139 | - steps: | |
140 | - - uses: actions/checkout@v4 | |
141 | - | |
142 | - - name: Setup Bun | |
143 | - uses: oven-sh/setup-bun@v2 | |
144 | - | |
145 | - - name: Install Rust | |
146 | - uses: dtolnay/rust-action@stable | |
147 | - with: | |
148 | - targets: aarch64-apple-ios,x86_64-apple-ios | |
149 | - | |
150 | - - name: Install frontend dependencies | |
151 | - run: bun install | |
152 | - | |
153 | - - name: Install Tauri CLI | |
154 | - run: cargo install tauri-cli | |
155 | - | |
156 | - - name: Initialize iOS | |
157 | - run: cargo tauri ios init | |
158 | - | |
159 | - - name: Build iOS | |
160 | - run: cargo tauri ios build | |
161 | - | |
162 | - - name: Upload iOS build | |
163 | - uses: actions/upload-artifact@v4 | |
164 | - with: | |
165 | - name: chandesk-ios | |
166 | - path: src-tauri/gen/apple/build/**/*.ipa | |
167 | - if-no-files-found: ignore | |
168 | 91 | |
▼.gitlab-ci.yml
+35-0
| @@ -0,0 +1,35 @@ | ||
1 | +image: rust:latest | |
2 | + | |
3 | +stages: | |
4 | + - build-linux | |
5 | + | |
6 | +variables: | |
7 | + npm_config_cache: "$CI_PROJECT_DIR/.npm" | |
8 | + SCCACHE_DIR: "$CI_PROJECT_DIR/.sccache" | |
9 | + | |
10 | +cache: | |
11 | + paths: | |
12 | + - .npm/ | |
13 | + - target/ | |
14 | + - .sccache/ | |
15 | + | |
16 | +build-linux: | |
17 | + stage: build-linux | |
18 | + image: rust:latest | |
19 | + before_script: | |
20 | + - apt-get update | |
21 | + - apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf curl unzip | |
22 | + # Install Bun | |
23 | + - curl -fsSL https://bun.sh/install | bash | |
24 | + - export BUN_INSTALL="$HOME/.bun" | |
25 | + - export PATH="$BUN_INSTALL/bin:$PATH" | |
26 | + # Install Tauri CLI | |
27 | + - cargo install tauri-cli | |
28 | + script: | |
29 | + - bun install | |
30 | + - cargo tauri build | |
31 | + artifacts: | |
32 | + paths: | |
33 | + - src-tauri/target/release/bundle/deb/*.deb | |
34 | + - src-tauri/target/release/bundle/appimage/*.AppImage | |
35 | + expire_in: 1 week | |
0 | 36 | |