From b5a45563ef0288f2d6b26679a22ede52164dd4d0 Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Tue, 11 Aug 2026 11:41:01 -0400 Subject: [PATCH] Add g++-13 CI install to apt cache --- .github/actions/openvic-dl-build/action.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/actions/openvic-dl-build/action.yml b/.github/actions/openvic-dl-build/action.yml index bbd500e..84c1d7b 100644 --- a/.github/actions/openvic-dl-build/action.yml +++ b/.github/actions/openvic-dl-build/action.yml @@ -60,14 +60,17 @@ runs: with: packages: build-essential pkg-config libtbb-dev - - name: Install and Set g++ to version 13 + - name: Install g++13 + if: ${{ runner.os == 'Linux' }} + uses: awalsh128/cache-apt-pkgs-action@553a35bb8ebd9fcabcb1c9451aa4c98e1b4ca8a9 # v1.6.3 + with: + add-repository: ppa:ubuntu-toolchain-r/test + packages: g++-13 + + - name: Set g++ to version 13 if: ${{ runner.os == 'Linux' }} shell: sh run: | - g++ --version - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y - sudo apt update -y - sudo apt install g++-13 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 13 sudo update-alternatives --set g++ /usr/bin/g++-13 g++ --version