Skip to content

Commit 72c6df4

Browse files
committed
Fixing linux build
1 parent 67924db commit 72c6df4

File tree

2 files changed

+41
-23
lines changed

2 files changed

+41
-23
lines changed

.github/workflows/ci-linux.yml

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@ name: ci-linux
33
on:
44
push:
55
paths:
6-
- '**'
7-
- '!COPYING'
8-
- '!COPYING-asm'
9-
- '!INSTALL'
10-
- '!**.md'
11-
- '!.clang*'
12-
- '!.gitignore'
13-
- '!.gitattributes'
14-
- '!.github/workflows/*'
15-
- '.github/workflows/ci-linux.yml'
6+
- "**"
7+
- "!COPYING"
8+
- "!COPYING-asm"
9+
- "!INSTALL"
10+
- "!**.md"
11+
- "!.clang*"
12+
- "!.gitignore"
13+
- "!.gitattributes"
14+
- "!.github/workflows/*"
15+
- ".github/workflows/ci-linux.yml"
1616
pull_request:
1717
paths:
18-
- '**'
19-
- '!COPYING'
20-
- '!COPYING-asm'
21-
- '!INSTALL'
22-
- '!**.md'
23-
- '!.clang*'
24-
- '!.gitignore'
25-
- '!.gitattributes'
26-
- '!.github/workflows/*'
27-
- '.github/workflows/ci-linux.yml'
18+
- "**"
19+
- "!COPYING"
20+
- "!COPYING-asm"
21+
- "!INSTALL"
22+
- "!**.md"
23+
- "!.clang*"
24+
- "!.gitignore"
25+
- "!.gitattributes"
26+
- "!.github/workflows/*"
27+
- ".github/workflows/ci-linux.yml"
2828

2929
jobs:
3030
ci-linux:
@@ -47,7 +47,16 @@ jobs:
4747
steps:
4848
- name: Install dependencies
4949
run: |
50-
sudo apt-fast update
50+
if ! apt-fast -- help &> /dev/null; then
51+
sudo add-apt-repository -u -y ppa:apt-fast/stable
52+
sudo apt-get update
53+
echo debconf apt-fast/maxdownloads string 16 | sudo debconf-set-selections
54+
echo debconf apt-fast/dlflag boolean true | sudo debconf-set-selections
55+
echo debconf apt-fast/aptmanager string apt-get | sudo debconf-set-selections
56+
DEBIAN_FRONTEND=noninteractive sudo apt install -y apt-fast
57+
else
58+
sudo apt-fast update
59+
fi
5160
sudo apt-fast install -y libboost-all-dev ninja-build
5261
- name: Checkout code
5362
uses: actions/checkout@master

.github/workflows/coverity-scan.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,17 @@ jobs:
3434
- name: Install dependencies
3535
if: ${{ env.REPO_ALIVE == 'true' }}
3636
run: |
37-
sudo apt-fast update
38-
sudo apt-fast install -y libboost-all-dev
37+
if ! apt-fast -- help &> /dev/null; then
38+
sudo add-apt-repository -u -y ppa:apt-fast/stable
39+
sudo apt-get update
40+
echo debconf apt-fast/maxdownloads string 16 | sudo debconf-set-selections
41+
echo debconf apt-fast/dlflag boolean true | sudo debconf-set-selections
42+
echo debconf apt-fast/aptmanager string apt-get | sudo debconf-set-selections
43+
DEBIAN_FRONTEND=noninteractive sudo apt install -y apt-fast
44+
else
45+
sudo apt-fast update
46+
fi
47+
sudo apt-fast install -y libboost-all-dev ninja-build
3948
- name: Download Coverity Build Tool
4049
if: ${{ env.REPO_ALIVE == 'true' }}
4150
run: |

0 commit comments

Comments
 (0)