Skip to content

Commit

Permalink
ci: do not increment build_number.txt
Browse files Browse the repository at this point in the history
scripts: improve cache on linux
  • Loading branch information
MrCyjaneK committed Jan 7, 2025
1 parent a633b16 commit cb1d9ac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 35 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/pr_test_build_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,34 +226,7 @@ jobs:
echo -e "id=com.cakewallet.test_${sanitized_branch_name}\nname=${BRANCH_NAME}" > android/app.properties
# Step 3: Download previous build number
- name: Download previous build number
id: download-build-number
run: |
# Download the artifact if it exists
if [[ ! -f build_number.txt ]]; then
echo "1" > build_number.txt
fi
# Step 4: Read and Increment Build Number
- name: Increment Build Number
id: increment-build-number
run: |
# Read current build number from file
BUILD_NUMBER=$(cat build_number.txt)
BUILD_NUMBER=$((BUILD_NUMBER + 1))
echo "New build number: $BUILD_NUMBER"
# Save the incremented build number
echo "$BUILD_NUMBER" > build_number.txt
# Export the build number to use in later steps
echo "BUILD_NUMBER=$BUILD_NUMBER" >> $GITHUB_ENV
# Step 5: Update pubspec.yaml with new build number
- name: Update build number
run: |
sed -i "s/^version: .*/version: 1.0.$BUILD_NUMBER/" pubspec.yaml
- name: Build
run: |
Expand Down
1 change: 0 additions & 1 deletion scripts/android/build_monero_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ NPROC="-j$(nproc)"

../prepare_moneroc.sh

# NOTE: -j1 is intentional. Otherwise you will run into weird behaviour on macos
for COIN in monero wownero;
do
pushd ../monero_c
Expand Down
18 changes: 11 additions & 7 deletions scripts/linux/build_monero_all.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#!/bin/bash


. ./config.sh


set -x -e

cd "$(dirname "$0")"
Expand All @@ -15,7 +11,15 @@ NPROC="-j$(nproc)"
for COIN in monero wownero;
do
pushd ../monero_c
./build_single.sh ${COIN} $(gcc -dumpmachine) $NPROC
for target in x86_64-linux-gnu
do
if [[ -f "release/${COIN}/${target}_libwallet2_api_c.so" ]];
then
echo "file exist, not building monero_c for ${COIN}/$target.";
else
env -i ./build_single.sh ${COIN} $target $NPROC
unxz -f ../monero_c/release/${COIN}/${target}_libwallet2_api_c.so.xz
fi
done
popd
unxz -f ../monero_c/release/${COIN}/$(gcc -dumpmachine)_libwallet2_api_c.so.xz
done
done

0 comments on commit cb1d9ac

Please sign in to comment.