Skip to content

Commit

Permalink
move to g++ 11
Browse files Browse the repository at this point in the history
  • Loading branch information
olehnikolaiev committed Nov 13, 2024
1 parent 031280b commit b3b1c8b
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 48 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,39 +31,39 @@ jobs:
- name: Install packages
run: |
sudo apt-get install -y software-properties-common
sudo apt-get install -y gcc-9 g++-9
- name: use g++-9 by default
sudo apt-get install -y gcc-11 g++-11
- name: use g++-11 by default
run: |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 9
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 11
- name: Install more packages
run: |
sudo apt-get install -y gawk sed shtool \
libffi-dev yasm texinfo flex bison libgnutls28-dev libc6-dbg gcc-multilib
libffi-dev yasm texinfo libgnutls28-dev libc6-dbg gcc-multilib
sudo snap install valgrind --classic
python -m pip install --upgrade pip
pip install coincurve
- name: Build dependencies
run: |
export CC=gcc-9
export CXX=g++-9
export CC=gcc-11
export CXX=g++-11
export TARGET=all
cd deps
./build.sh
- name: Configure all
run: |
export CC=gcc-9
export CXX=g++-9
export CC=gcc-11
export CXX=g++-11
export TARGET=all
mkdir -p build && cd build
cmake ..
- name: Build all
run: |
export CC=gcc-9
export CXX=g++-9
export CC=gcc-11
export CXX=g++-11
export TARGET=all
cd build
make -j$(nproc)
Expand Down Expand Up @@ -111,9 +111,8 @@ jobs:
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y gcc-9 g++-9 gawk sed shtool \
libffi-dev yasm texinfo flex bison \
python3.6 lcov gcc-multilib
sudo apt-get install -y gcc-11 g++-11 gawk sed shtool \
libffi-dev yasm texinfo python3.6 lcov gcc-multilib
sudo apt-get update -qq
sudo apt-get install -y python3-pip
pip3 install --upgrade pip
Expand All @@ -128,8 +127,8 @@ jobs:

- name: Build dependencies
run: |
export CC=gcc-9
export CXX=g++-9
export CC=gcc-11
export CXX=g++-11
export TARGET=all
cd deps
./build.sh WITH_EMSCRIPTEN=1
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,45 +32,45 @@ jobs:
- name: Install packages
run: |
sudo apt-get install -y software-properties-common
sudo apt-get install -y gcc-9 g++-9
- name: use g++-9 by default
sudo apt-get install -y gcc-11 1g++-11
- name: use g++-11 by default
run: |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 9
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 11
- name: Install more packages
run: |
sudo apt-get update
sudo apt-get install -y clang-format-6.0 gawk sed shtool \
libffi-dev yasm texinfo flex bison libgnutls28-dev gcc-multilib
sudo apt-get install -y gawk sed shtool \
libffi-dev yasm texinfo libgnutls28-dev gcc-multilib
- name: Build dependencies
run: |
export CC=gcc-9
export CXX=g++-9
export CC=gcc-11
export CXX=g++-11
export TARGET=all
cd deps
./build.sh
- name: Configure
run: |
export CC=gcc-9
export CXX=g++-9
export CC=gcc-11
export CXX=g++-11
export TARGET=all
mkdir -p build && cd build
cmake ..
- name: Build
run: |
export CC=gcc-9
export CXX=g++-9
export CC=gcc-11
export CXX=g++-11
export TARGET=all
cd build
make -j$(nproc)
- name: Build dependencies wasm
run: |
export CC=gcc-9
export CXX=g++-9
export CC=gcc-11
export CXX=g++-11
export TARGET=all
cd deps
./clean.sh
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ jobs:
- name: install packages
run: |
sudo apt-get install -y software-properties-common
sudo apt-get install -y gcc-9 g++-9
- name: Use g++-9 and gcov-9 by default
sudo apt-get install -y gcc-11 g++-11
- name: Use g++-11 and gcov-11 by default
run: >
echo "Updating all needed alternatives"
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 11
sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-9 9
sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-11 11
sudo update-alternatives --install /usr/bin/gcov-dump gcov-dump /usr/bin/gcov-dump-9 9
sudo update-alternatives --install /usr/bin/gcov-dump gcov-dump /usr/bin/gcov-dump-11 11
sudo update-alternatives --install /usr/bin/gcov-tool gcov-tool /usr/bin/gcov-tool-9 9
sudo update-alternatives --install /usr/bin/gcov-tool gcov-tool /usr/bin/gcov-tool-11 11
echo "Checking alternative for gcc"
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
run: >
sudo apt-get update
sudo apt-get install -y gcc-9 g++-9 gawk sed shtool \
sudo apt-get install -y gawk sed shtool \
libffi-dev yasm texinfo libgnutls28-dev python3 gcc-multilib git
sudo apt-get update -qq
Expand Down Expand Up @@ -123,23 +123,23 @@ jobs:
lcov --version
- name: Build dependencies
run: |
export CC=gcc-9
export CXX=g++-9
export CC=gcc-11
export CXX=g++-11
export TARGET=all
cd deps
./build.sh
- name: Configure all
run: |
export CC=gcc-9
export CXX=g++-9
export CC=gcc-11
export CXX=g++-11
export TARGET=all
CMAKE_BUILD_FLAGS="-DCOVERAGE=ON"
mkdir -p build && cd build
cmake $CMAKE_BUILD_FLAGS ..
- name: Build all
run: |
export CC=gcc-9
export CXX=g++-9
export CC=gcc-11
export CXX=g++-11
export TARGET=all
CMAKE_BUILD_FLAGS="-DCOVERAGE=ON"
cd build
Expand Down Expand Up @@ -231,7 +231,7 @@ jobs:
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y gcc-9 g++-9 gawk sed shtool libffi-dev yasm texinfo python3 gcc-multilib
sudo apt-get install -y gcc-11 g++-11 gawk sed shtool libffi-dev yasm texinfo python3 gcc-multilib
sudo apt-get update -qq
sudo apt-get install -y python3-pip
pip3 install --upgrade pip
Expand All @@ -244,8 +244,8 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Build dependencies
run: |
export CC=gcc-9
export CXX=g++-9
export CC=gcc-11
export CXX=g++-11
export TARGET=all
cd deps
./build.sh WITH_EMSCRIPTEN=1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ cd ..
## Building from source on Mac

```shell
brew install flex bison libtool automake cmake pkg-config yasm
brew install libtool automake cmake pkg-config yasm
# Configure the project and create a build directory.
cmake -H. -Bbuild

Expand Down

0 comments on commit b3b1c8b

Please sign in to comment.