File tree 1 file changed +11
-8
lines changed 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 3
3
set -e
4
4
5
5
pip3 install clint pyserial setuptools adafruit-nrfutil
6
- sudo gem install apt-spy2
7
- sudo apt-spy2 check
8
- sudo apt-spy2 fix --commit
9
6
10
- # after selecting a specific mirror, we need to run 'apt-get update'
11
- sudo apt-get -o Acquire::Retries=3 update
7
+ # Only install stuff if it is really missing. This should never be executed,
8
+ # as the default image contains clang-format v10, v11 (default) and v12.
9
+ # https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md#language-and-runtime
10
+ if [ ! -f /usr/bin/clang-format ]; then
11
+ sudo gem install apt-spy2
12
+ sudo apt-spy2 check
13
+ sudo apt-spy2 fix --commit
12
14
13
- sudo apt-get -o Acquire::Retries=3 install -y libllvm8 -V
15
+ # after selecting a specific mirror, we need to run 'apt-get update'
16
+ sudo apt-get -o Acquire::Retries=3 update
17
+
18
+ sudo apt-get -o Acquire::Retries=3 install -y clang-format-8 libllvm8
14
19
15
- sudo apt install -fy cppcheck clang-format-8
16
- if [ ! -f /usr/bin/clang-format ]; then
17
20
sudo ln -s /usr/bin/clang-format-8 /usr/bin/clang-format
18
21
fi
19
22
You can’t perform that action at this time.
0 commit comments