Skip to content

Commit 2bdf495

Browse files
committedDec 23, 2020
CI: fix build
1 parent d2bbf13 commit 2bdf495

File tree

2 files changed

+10
-21
lines changed

2 files changed

+10
-21
lines changed
 

Diff for: ‎.github/workflows/build.yml

+9-16
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ jobs:
3333
- uses: actions/checkout@v2
3434
- name: Install deps
3535
run: |
36-
sudo apt-get install g++-6 gcc-6 -qyy
3736
source ./util/ci/common.sh
38-
install_linux_deps
37+
install_linux_deps g++-6
3938
4039
- name: Build
4140
run: |
@@ -55,9 +54,8 @@ jobs:
5554
- uses: actions/checkout@v2
5655
- name: Install deps
5756
run: |
58-
sudo apt-get install g++-8 gcc-8 -qyy
5957
source ./util/ci/common.sh
60-
install_linux_deps
58+
install_linux_deps g++-8
6159
6260
- name: Build
6361
run: |
@@ -77,9 +75,8 @@ jobs:
7775
- uses: actions/checkout@v2
7876
- name: Install deps
7977
run: |
80-
sudo apt-get install clang-3.9 -qyy
8178
source ./util/ci/common.sh
82-
install_linux_deps
79+
install_linux_deps clang-3.9
8380
8481
- name: Build
8582
run: |
@@ -99,18 +96,16 @@ jobs:
9996
- uses: actions/checkout@v2
10097
- name: Install deps
10198
run: |
102-
sudo apt-get install clang-9 valgrind -qyy
10399
source ./util/ci/common.sh
104-
install_linux_deps
105-
env:
106-
WITH_LUAJIT: 1
100+
install_linux_deps clang-9 valgrind libluajit-5.1-dev
107101
108102
- name: Build
109103
run: |
110104
./util/ci/build.sh
111105
env:
112106
CC: clang-9
113107
CXX: clang++-9
108+
CMAKE_FLAGS: "-DREQUIRE_LUAJIT=1"
114109

115110
- name: Test
116111
run: |
@@ -128,9 +123,8 @@ jobs:
128123
- uses: actions/checkout@v2
129124
- name: Install deps
130125
run: |
131-
sudo apt-get install clang-9 -qyy
132126
source ./util/ci/common.sh
133-
install_linux_deps
127+
install_linux_deps clang-9
134128
135129
- name: Build prometheus-cpp
136130
run: |
@@ -156,9 +150,8 @@ jobs:
156150
- uses: actions/checkout@v2
157151
- name: Install deps
158152
run: |
159-
sudo apt-get install clang-9 -qyy
160153
source ./util/ci/common.sh
161-
install_linux_deps
154+
install_linux_deps clang-9
162155
163156
- name: Build
164157
run: |
@@ -188,7 +181,7 @@ jobs:
188181
- uses: actions/checkout@v2
189182
- name: Install compiler
190183
run: |
191-
sudo apt-get install gettext -qyy
184+
sudo apt-get update -q && sudo apt-get install gettext -qyy
192185
wget http://minetest.kitsunemimi.pw/mingw-w64-i686_9.2.0_ubuntu18.04.tar.xz -O mingw.tar.xz
193186
sudo tar -xaf mingw.tar.xz -C /usr
194187
@@ -206,7 +199,7 @@ jobs:
206199
- uses: actions/checkout@v2
207200
- name: Install compiler
208201
run: |
209-
sudo apt-get install gettext -qyy
202+
sudo apt-get update -q && sudo apt-get install gettext -qyy
210203
wget http://minetest.kitsunemimi.pw/mingw-w64-x86_64_9.2.0_ubuntu18.04.tar.xz -O mingw.tar.xz
211204
sudo tar -xaf mingw.tar.xz -C /usr
212205

Diff for: ‎util/ci/common.sh

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,9 @@ install_linux_deps() {
77
libhiredis-dev libogg-dev libgmp-dev libvorbis-dev libopenal-dev \
88
gettext libpq-dev postgresql-server-dev-all libleveldb-dev \
99
libcurl4-openssl-dev)
10-
# for better coverage, build some jobs with luajit
11-
if [ -n "$WITH_LUAJIT" ]; then
12-
pkgs+=(libluajit-5.1-dev)
13-
fi
1410

1511
sudo apt-get update
16-
sudo apt-get install -y --no-install-recommends ${pkgs[@]}
12+
sudo apt-get install -y --no-install-recommends ${pkgs[@]} "$@"
1713
}
1814

1915
# Mac OSX build only

0 commit comments

Comments
 (0)
Please sign in to comment.