Skip to content

Commit f8abb13

Browse files
committed
just pull fuego source & buidl walletd
1 parent edf7d3f commit f8abb13

File tree

5 files changed

+158
-80
lines changed

5 files changed

+158
-80
lines changed

.github/workflows/android-release.yml

Lines changed: 43 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@ name: XF₲ Wallet Android Build & Release
22

33
on:
44
push:
5-
branches: [ main, master ]
5+
branches: [main, master]
66
paths:
7-
- 'lib/**'
8-
- 'android/**'
9-
- 'pubspec.yaml'
10-
- '.github/workflows/android-release.yml'
7+
- "lib/**"
8+
- "android/**"
9+
- "pubspec.yaml"
10+
- ".github/workflows/android-release.yml"
1111
pull_request:
12-
branches: [ main, master ]
12+
branches: [main, master]
1313
paths:
14-
- 'lib/**'
15-
- 'android/**'
16-
- 'pubspec.yaml'
17-
- '.github/workflows/android-release.yml'
14+
- "lib/**"
15+
- "android/**"
16+
- "pubspec.yaml"
17+
- ".github/workflows/android-release.yml"
1818
workflow_dispatch:
1919
inputs:
2020
build_type:
21-
description: 'Build type'
21+
description: "Build type"
2222
required: true
23-
default: 'release'
23+
default: "release"
2424
type: choice
2525
options:
26-
- release
27-
- debug
26+
- release
27+
- debug
2828
upload_to_play_store:
29-
description: 'Upload to Play Store'
29+
description: "Upload to Play Store"
3030
required: false
3131
default: false
3232
type: boolean
@@ -36,28 +36,28 @@ on:
3636
contents: write
3737

3838
env:
39-
FLUTTER_VERSION: '3.24.0'
39+
FLUTTER_VERSION: "3.24.0"
4040

4141
jobs:
4242
build-android:
4343
name: Build XF₲ Wallet (Android)
4444
runs-on: ubuntu-latest
45-
45+
4646
steps:
4747
- name: Checkout code
4848
uses: actions/checkout@v4
4949

5050
- name: Set up Java
5151
uses: actions/setup-java@v4
5252
with:
53-
distribution: 'temurin'
54-
java-version: '17'
53+
distribution: "temurin"
54+
java-version: "17"
5555

5656
- name: Set up Flutter
5757
uses: subosito/flutter-action@v2
5858
with:
5959
flutter-version: ${{ env.FLUTTER_VERSION }}
60-
channel: 'stable'
60+
channel: "stable"
6161

6262
- name: Enable Android support
6363
run: flutter config --enable-android
@@ -76,11 +76,25 @@ jobs:
7676
mv "$BINARY_PATH" assets/bin/xfg-stark-cli-linux
7777
rm xfg-stark-cli-linux.tar.gz
7878
79-
- name: Download fuego-walletd
79+
- name: Build fuego from source
8080
run: |
81-
curl -L -o fuego-walletd-linux "https://github.com/usexfg/fuego/releases/latest/download/fuego-walletd-linux"
82-
chmod +x fuego-walletd-linux
83-
mv fuego-walletd-linux assets/bin/
81+
# Clone fuego from dynamigo branch
82+
git clone -b dynamigo https://github.com/usexfg/fuego.git fuego-source
83+
cd fuego-source
84+
85+
# Install build dependencies
86+
sudo apt-get update
87+
sudo apt-get install -y build-essential cmake pkg-config libboost-all-dev libssl-dev libzmq3-dev
88+
89+
# Build fuego-walletd
90+
mkdir build && cd build
91+
cmake .. -DBUILD_ALL=ON -DBUILD_TESTS=OFF
92+
make -j$(nproc) fuego-walletd
93+
94+
# Copy binary to assets
95+
mkdir -p ../../assets/bin
96+
cp src/fuegowallet/fuego-walletd ../../assets/bin/
97+
chmod +x ../../assets/bin/fuego-walletd
8498
8599
- name: Install dependencies
86100
run: flutter pub get
@@ -187,7 +201,7 @@ jobs:
187201
runs-on: ubuntu-latest
188202
needs: build-android
189203
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.upload_to_play_store == 'true')
190-
204+
191205
steps:
192206
- name: Checkout code
193207
uses: actions/checkout@v4
@@ -220,7 +234,7 @@ jobs:
220234
runs-on: ubuntu-latest
221235
needs: build-android
222236
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.build_type == 'release')
223-
237+
224238
steps:
225239
- name: Checkout code
226240
uses: actions/checkout@v4
@@ -249,7 +263,7 @@ jobs:
249263
runs-on: ubuntu-latest
250264
needs: [build-android, upload-to-play-store]
251265
if: always() && github.event_name == 'release'
252-
266+
253267
steps:
254268
- name: Notify Discord
255269
if: env.DISCORD_WEBHOOK_URL != ''
@@ -259,11 +273,11 @@ jobs:
259273
with:
260274
args: |
261275
🚀 **XF₲ Wallet Android Release ${{ github.ref_name }}**
262-
276+
263277
✅ Android APK and AAB builds completed
264278
📱 Ready for distribution
265279
🔗 [Download from GitHub Releases](https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }})
266-
280+
267281
**Build Details:**
268282
- Version: ${{ github.ref_name }}
269283
- Commit: ${{ github.sha }}

.github/workflows/flutter-desktop.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ jobs:
166166
167167
- name: Build fuego from source
168168
run: |
169-
# Clone fuego from newpath branch
170-
git clone -b newpath https://github.com/colinritman/fuego.git fuego-source
169+
# Clone fuego from dynamigo branch
170+
git clone -b dynamigo https://github.com/usexfg/fuego.git fuego-source
171171
cd fuego-source
172172
173173
# Install build dependencies
@@ -261,8 +261,8 @@ jobs:
261261
262262
- name: Build fuego from source
263263
run: |
264-
# Clone fuego from newpath branch
265-
git clone -b newpath https://github.com/colinritman/fuego.git fuego-source
264+
# Clone fuego from dynamigo branch
265+
git clone -b dynamigo https://github.com/usexfg/fuego.git fuego-source
266266
cd fuego-source
267267
268268
# Install build dependencies

0 commit comments

Comments
 (0)