Skip to content

Commit

Permalink
Update git actions
Browse files Browse the repository at this point in the history
  • Loading branch information
levoncrypto committed Feb 13, 2025
1 parent 872c675 commit 609bc99
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 30 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/firodex-desktop-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,13 @@ jobs:
autoconf \
unzip \
libssl-dev \
cmake \
git -y
# get right cmake version
wget https://github.com/Kitware/CMake/releases/download/v3.27.1/cmake-3.27.1-linux-x86_64.tar.gz
tar -xvzf cmake-3.27.1-linux-x86_64.tar.gz
sudo cp -r cmake-3.27.1-linux-x86_64/* /usr/local/
sudo cp -r cmake-3.27.1-linux-x86_64/* /usr/
cmake --version
wget https://github.com/Kitware/CMake/releases/download/v3.17.1/cmake-3.17.1.tar.gz -O cmake.tar.gz
tar xvzf cmake.tar.gz
cd cmake-3.17.1
./bootstrap
sudo make install
# get llvm
wget https://apt.llvm.org/llvm.sh
Expand All @@ -84,8 +83,8 @@ jobs:
sudo make -j2 install
# set clang version
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-9 100
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-9 100
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 100
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 100
# cleanup
sudo apt-get clean && \
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/firodex-desktop-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ jobs:
- name: Upload env variable for vpkg (Linux)
if: runner.os == 'Linux'
run: |
echo "CXX=clang++-12" >> $GITHUB_ENV
echo "CC=clang-12" >> $GITHUB_ENV
echo "CXX=clang++-18" >> $GITHUB_ENV
echo "CC=clang-18" >> $GITHUB_ENV
- name: vcpkg deps (All)
uses: lukka/run-vcpkg@v10
Expand Down Expand Up @@ -262,8 +262,8 @@ jobs:
export PATH=$HOME/.nimble/bin:$PATH
#export CXXFLAGS=-stdlib=libc++
#export LDFLAGS=-stdlib=libc++
export CXX=clang++-12
export CC=clang-12
export CXX=clang++-18
export CC=clang-18
cd ci_tools_atomic_dex
nimble build -y
Expand Down Expand Up @@ -368,8 +368,8 @@ jobs:
export QT_ROOT=${{ github.workspace }}/Qt/${{ matrix.qt }}
export PATH=${{ github.workspace }}/Qt/${{ matrix.qt }}/gcc_64/bin:$PATH
export PATH=$HOME/.nimble/bin:$PATH
export CXX=clang++-12
export CC=clang-12
export CXX=clang++-18
export CC=clang-18
#echo "Running tests"
#./ci_tools_atomic_dex tests ${{ matrix.type }}
#cd build-${{ matrix.type }}/bin/AntaraAtomicDexTestsAppDir/usr/bin
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ RUN git config --global --add safe.directory /build/komodo-wallet-desktop
RUN cd /build/komodo-wallet-desktop && ./ci_tools_atomic_dex/ci_scripts/linux_script_docker.sh


ENV CXX=clang++-12
ENV CC=clang-12
ENV CXX=clang++-18
ENV CC=clang-18
#ENV CXXFLAGS="-stdlib=libc++ -std=c++20"
#ENV LDFLAGS="-stdlib=libc++"

Expand Down
8 changes: 4 additions & 4 deletions ci_tools_atomic_dex/ci_scripts/linux_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 12
# set clang version
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-12 777
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-12 777
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 777
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 777
# set gnu compilers version
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 777
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 777
sudo apt-get update
sudo apt-get install libc++abi-11-dev libc++-11-dev -y
#export CXXFLAGS=-stdlib=libc++
#export LDFLAGS=-stdlib=libc++
export CXX=clang++-12
export CC=clang-12
export CXX=clang++-18
export CC=clang-18

# get right cmake version
wget https://github.com/Kitware/CMake/releases/download/v3.19.0-rc3/cmake-3.19.0-rc3-Linux-x86_64.tar.gz
Expand Down
8 changes: 4 additions & 4 deletions ci_tools_atomic_dex/ci_scripts/linux_script_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ chmod +x llvm.sh
sudo ./llvm.sh 12

# Set Clang as the default compiler
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-12 777
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-12 777
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 777
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 777

# Set GCC/G++ 9 as the fallback compiler
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 777
Expand All @@ -23,8 +23,8 @@ sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 777
sudo apt-get install -y libc++-11-dev libc++abi-11-dev

# Set environment variables for Clang
export CXX=clang++-12
export CC=clang-12
export CXX=clang++-18
export CC=clang-18

# Install CMake 3.27.1
wget https://github.com/Kitware/CMake/releases/download/v3.27.1/cmake-3.27.1-linux-x86_64.tar.gz
Expand Down
8 changes: 4 additions & 4 deletions ci_tools_atomic_dex/linux_misc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ RUN apt-get -y update && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN wget https://apt.llvm.org/llvm.sh; chmod +x llvm.sh; ./llvm.sh 12; \
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-12 777; \
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-12 777; \
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 777; \
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 777; \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 777; \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 777; \
apt-get update; \
export CXX=clang++-12; \
export CC=clang-12;
export CXX=clang++-18; \
export CC=clang-18;

RUN wget https://github.com/Kitware/CMake/releases/download/v$CMAKE_VERSION/cmake-$CMAKE_VERSION-linux-x86_64.tar.gz; \
tar xvf cmake-$CMAKE_VERSION-linux-x86_64.tar.gz; curdir=$(pwd); \
Expand Down
4 changes: 2 additions & 2 deletions docs/BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ chmod +x llvm.sh
sudo ./llvm.sh 12

# set clang version
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-12 777
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-12 777
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 777
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 777
sudo apt-get update
# if you want to use libclang
#sudo apt-get install libc++abi-12-dev libc++-12-dev -y
Expand Down

0 comments on commit 609bc99

Please sign in to comment.