File tree Expand file tree Collapse file tree 3 files changed +11
-35
lines changed Expand file tree Collapse file tree 3 files changed +11
-35
lines changed Original file line number Diff line number Diff line change @@ -226,34 +226,7 @@ jobs:
226
226
227
227
echo -e "id=com.cakewallet.test_${sanitized_branch_name}\nname=${BRANCH_NAME}" > android/app.properties
228
228
229
- # Step 3: Download previous build number
230
- - name : Download previous build number
231
- id : download-build-number
232
- run : |
233
- # Download the artifact if it exists
234
- if [[ ! -f build_number.txt ]]; then
235
- echo "1" > build_number.txt
236
- fi
237
-
238
- # Step 4: Read and Increment Build Number
239
- - name : Increment Build Number
240
- id : increment-build-number
241
- run : |
242
- # Read current build number from file
243
- BUILD_NUMBER=$(cat build_number.txt)
244
- BUILD_NUMBER=$((BUILD_NUMBER + 1))
245
- echo "New build number: $BUILD_NUMBER"
246
229
247
- # Save the incremented build number
248
- echo "$BUILD_NUMBER" > build_number.txt
249
-
250
- # Export the build number to use in later steps
251
- echo "BUILD_NUMBER=$BUILD_NUMBER" >> $GITHUB_ENV
252
-
253
- # Step 5: Update pubspec.yaml with new build number
254
- - name : Update build number
255
- run : |
256
- sed -i "s/^version: .*/version: 1.0.$BUILD_NUMBER/" pubspec.yaml
257
230
258
231
- name : Build
259
232
run : |
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ NPROC="-j$(nproc)"
10
10
11
11
../prepare_moneroc.sh
12
12
13
- # NOTE: -j1 is intentional. Otherwise you will run into weird behaviour on macos
14
13
for COIN in monero wownero;
15
14
do
16
15
pushd ../monero_c
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
-
4
- . ./config.sh
5
-
6
-
7
3
set -x -e
8
4
9
5
cd " $( dirname " $0 " ) "
@@ -15,7 +11,15 @@ NPROC="-j$(nproc)"
15
11
for COIN in monero wownero;
16
12
do
17
13
pushd ../monero_c
18
- ./build_single.sh ${COIN} $( gcc -dumpmachine) $NPROC
14
+ for target in x86_64-linux-gnu
15
+ do
16
+ if [[ -f " release/${COIN} /${target} _libwallet2_api_c.so" ]];
17
+ then
18
+ echo " file exist, not building monero_c for ${COIN} /$target ." ;
19
+ else
20
+ env -i ./build_single.sh ${COIN} $target $NPROC
21
+ unxz -f ../monero_c/release/${COIN} /${target} _libwallet2_api_c.so.xz
22
+ fi
23
+ done
19
24
popd
20
- unxz -f ../monero_c/release/${COIN} /$( gcc -dumpmachine) _libwallet2_api_c.so.xz
21
- done
25
+ done
You can’t perform that action at this time.
0 commit comments