From 14f458f06d9faf2dedd66f3bbcf4401a954399c6 Mon Sep 17 00:00:00 2001 From: Sh0g0-1758 Date: Fri, 8 Nov 2024 02:26:50 +0530 Subject: [PATCH] update workflow --- .github/workflows/c-cpp.yml | 12 +++++++++--- .github/workflows/cmake-multi-platform.yml | 11 ++++++----- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 4fafc52..bd53325 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -13,16 +13,22 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install dependencies + - name: Install GCC 13 and dependencies run: | sudo apt-get update - sudo apt-get install -y cmake build-essential + sudo apt-get install -y software-properties-common + sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test + sudo apt-get update + sudo apt-get install -y gcc-13 g++-13 cmake build-essential nlohmann-json3-dev - name: Create build directory run: mkdir build - name: Configure CMake working-directory: ./build + env: + CC: gcc-13 + CXX: g++-13 run: cmake .. - name: Build @@ -35,4 +41,4 @@ jobs: - name: Run Speed tests working-directory: ./build - run: make testSpeed + run: make testSpeed \ No newline at end of file diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 71f6d17..663a98a 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -15,7 +15,7 @@ jobs: matrix: build_type: [Debug, Release] compiler: - - { cc: gcc, cxx: g++ } + - { cc: gcc-13, cxx: g++-13 } - { cc: clang, cxx: clang++ } steps: @@ -27,10 +27,13 @@ jobs: run: | echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" - - name: Install dependencies + - name: Install GCC 13 and dependencies run: | sudo apt-get update - sudo apt-get install -y cmake build-essential + sudo apt-get install -y software-properties-common + sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test + sudo apt-get update + sudo apt-get install -y gcc-13 g++-13 cmake build-essential nlohmann-json3-dev - name: Configure CMake run: > @@ -38,8 +41,6 @@ jobs: -DCMAKE_C_COMPILER=${{ matrix.compiler.cc }} -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} - -DCMAKE_CXX_STANDARD=17 - -DCMAKE_CXX_STANDARD_REQUIRED=ON -S ${{ github.workspace }} - name: Build