Skip to content

Commit

Permalink
ci: fix apt update
Browse files Browse the repository at this point in the history
  • Loading branch information
coderkalyan committed Mar 20, 2022
1 parent 0b5efba commit 0c99724
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh $LLVM_VERSION
sudo apt-get -y update
sudo apt update -y && sudo apt upgrade -y
sudo apt-get -y install gcc-multilib g++-multilib clang-tidy-$LLVM_VERSION
sudo update-alternatives --install /usr/bin/clang-tidy clang-tidy /usr/bin/clang-tidy-$LLVM_VERSION 50
clang-tidy --version
Expand Down Expand Up @@ -58,8 +58,10 @@ jobs:
cxx-compiler: clang++
steps:
- uses: actions/checkout@v2
- run: sudo apt install gcc-multilib g++-multilib
- run: >
- run: |
sudo apt update -y && sudo apt upgrade -y
sudo apt install gcc-multilib g++-multilib
- run: |
cmake
-B ${{ github.workspace }}/build
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
Expand All @@ -86,6 +88,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- run: |
sudo apt update -y && sudo apt upgrade -y
sudo apt install gcc-avr avr-libc
avr-gcc --version
- run: avr-gcc libcanard/*.c -c -std=c99 -mmcu=${{ env.mcu }} ${{ env.flags }}
Expand Down Expand Up @@ -118,7 +121,9 @@ jobs:
fetch-depth: 0

- name: Install Dependencies
run: sudo apt install gcc-multilib g++-multilib
run: |
sudo apt update -y && sudo apt upgrade -y
sudo apt install -y gcc-multilib g++-multilib
- name: Set up JDK
uses: actions/setup-java@v1
Expand Down

0 comments on commit 0c99724

Please sign in to comment.