CI script fixes

This commit is contained in:
Blaise Tine 2024-07-21 08:55:13 -07:00
parent 92390187ff
commit cf3a77ab1b
2 changed files with 39 additions and 7 deletions

View file

@ -27,13 +27,7 @@ jobs:
- name: Install Dependencies
run: |
sudo apt-get update
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y g++-11 gcc-11
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 100
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100
sudo apt-get install -y build-essential valgrind libstdc++6 binutils python uuid-dev
./ci/system_updates.sh
- name: Cache Toolchain Directory
id: cache-toolchain
@ -78,6 +72,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Dependencies
run: |
./ci/system_updates.sh
- name: Cache Toolchain Directory
id: cache-toolchain
uses: actions/cache@v2
@ -126,6 +124,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Dependencies
run: |
./ci/system_updates.sh
- name: Cache Toolchain Directory
id: cache-toolchain
uses: actions/cache@v2

30
ci/system_updates.sh Normal file
View file

@ -0,0 +1,30 @@
#!/bin/sh
# Copyright 2019-2023
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set -e
sudo apt-get update -y
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y g++-11 gcc-11
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 100
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100
sudo apt-get install -y build-essential valgrind libstdc++6 binutils python uuid-dev
sudo apt-get upgrade -y
sudo apt-get update -y