Skip to content

Commit cb1d9ac

Browse files
committed
ci: do not increment build_number.txt
scripts: improve cache on linux
1 parent a633b16 commit cb1d9ac

File tree

3 files changed

+11
-35
lines changed

3 files changed

+11
-35
lines changed

.github/workflows/pr_test_build_android.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -226,34 +226,7 @@ jobs:
226226
227227
echo -e "id=com.cakewallet.test_${sanitized_branch_name}\nname=${BRANCH_NAME}" > android/app.properties
228228
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"
246229
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
257230
258231
- name: Build
259232
run: |

scripts/android/build_monero_all.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ NPROC="-j$(nproc)"
1010

1111
../prepare_moneroc.sh
1212

13-
# NOTE: -j1 is intentional. Otherwise you will run into weird behaviour on macos
1413
for COIN in monero wownero;
1514
do
1615
pushd ../monero_c

scripts/linux/build_monero_all.sh

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#!/bin/bash
22

3-
4-
. ./config.sh
5-
6-
73
set -x -e
84

95
cd "$(dirname "$0")"
@@ -15,7 +11,15 @@ NPROC="-j$(nproc)"
1511
for COIN in monero wownero;
1612
do
1713
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
1924
popd
20-
unxz -f ../monero_c/release/${COIN}/$(gcc -dumpmachine)_libwallet2_api_c.so.xz
21-
done
25+
done

0 commit comments

Comments
 (0)