Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/komodo_win_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
windows-build:

name: Win Build
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
Expand Down
39 changes: 33 additions & 6 deletions .github/workflows/komodod_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,40 @@ jobs:
run: |
sudo apt-get update # prevents repo404 errors on apt-remove below
sudo apt-get remove php* msodbcsql17 mysql* powershell containernetworking-* containers* dotn*
sudo ACCEPT_EULA=Y apt-get upgrade -y
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool \
libncurses-dev unzip wget bsdmainutils automake libboost-all-dev libssl-dev \
libprotobuf-dev protobuf-compiler libqrencode-dev libdb++-dev ntp ntpdate nano \
software-properties-common curl libevent-dev libcurl4-gnutls-dev cmake clang \
libsodium-dev ncurses-dev git python3 python3-zmq zlib1g-dev mingw-w64 -y
sudo apt-get install build-essential \
pkg-config \
libc6-dev \
m4 \
g++-multilib \
autoconf libtool \
libncurses-dev \
unzip \
git \
python3 \
zlib1g-dev \
wget \
bsdmainutils \
automake \
libboost-all-dev \
libssl-dev \
libprotobuf-dev \
protobuf-compiler \
libqrencode-dev \
libdb++-dev \
ntp \
ntpdate \
nano \
software-properties-common \
curl \
libevent-dev \
libcurl4-gnutls-dev \
cmake \
clang \
libsodium-dev \
python3-zmq \
mingw-w64 -y
curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
rustup target add x86_64-pc-windows-gnu
Expand Down
57 changes: 57 additions & 0 deletions zcutil/clean-help-dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#!/usr/bin/env bash

# If `make clean` fails for any reason, it is helpful to
# manually clean any remaining files from the previous build.
# This is especially useful if the new build is for a different
# architecture than the previous build, such as a Windows release
# after an OSX cross-compile. Normally these files should be
# cleaned during `make clean` execution.

is_git_root=0

function check_git_root() {

local dir=$(pwd)

while [[ "$dir" != "" && ! -d "$dir/.git" ]]; do
dir=${dir%/*} # ${parameter%word}
done

if [ "$dir" == "" ]; then
echo "$(pwd) is not in a Git repository. Exiting..."
is_git_root=0
else
if [ "$dir" != "$(pwd)" ]; then
echo "$(pwd) is not the root of the Git repository. Exiting..."
is_git_root=0
else
echo "$(pwd) is the root of the Git repository."
is_git_root=1
fi
fi
}

check_git_root

if [ "$is_git_root" -eq "1" ]; then

rm -f ./src/qt/moc_*.cpp # delete meta object code files, otherwise we will have MacOS after Linux/Windows build error
rm -f ./src/qt/*.moc
rm -f ./src/qt/libkomodoqt.a
rm -f ./src/leveldb/libmemenv.a
rm -f ./src/leveldb/libleveldb_sse42.a
rm -f ./src/leveldb/libleveldb.a
rm -f ./src/qt/qrc_komodo.cpp
rm -f ./src/qt/qrc_komodo_locale.cpp

# https://unix.stackexchange.com/questions/84265/linux-shell-find-exec-in-find-exec
# https://askubuntu.com/questions/377438/how-can-i-recursively-delete-all-files-of-a-specific-extension-in-the-current-di

# search for *.a, *.la, *.o, *.lo, *.Plo, *.Po, *.lai, *.dirstamp in all folders starting from .src, including hidden folders,
# to search only in hidden folders add -path "*/.*" arg to command
find ./src \( -name "*.a" -o -name "*.la" -o -name "*.o" -o -name "*.lo" -o -name "*.Plo" -o -name "*.Po" -o -name "*.lai" -o -name "*.dirstamp" \) -delete
echo "Remnant build files deleted!"
fi



Loading