Skip to content

Commit c87b41f

Browse files
committed
gh-workflow: update to /usr/bin/nproc and Ubuntu 24
1 parent 0b8f118 commit c87b41f

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@ on:
77
pull_request:
88
branches: [ "master" ]
99

10+
# Github.com breaks "ubuntu-latest" every now and then:
11+
# (echo we are going to change latest from 22 to 24; exit 1)
12+
# Stupid! We know it's a moving target.
13+
#
1014
jobs:
1115
build:
12-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-24.04
1317
steps:
1418
- name: install-deps
1519
uses: awalsh128/cache-apt-pkgs-action@latest
1620
with:
17-
packages: autoconf automake autotools-dev binutils cmake g++ gettext libbfio-dev libcurl4-openssl-dev libfmt-dev libgnutls28-dev libgsasl7-dev libjsoncpp-dev libldap2-dev libmariadb-dev libpam0g-dev libolecf-dev libpff-dev libsqlite3-dev libssl-dev libtinyxml2-dev libtool libxml2-dev libxxhash-dev libzstd-dev make m4 openssl php-dev pkg-config sed systemd uuid-dev zlib1g-dev
21+
packages: autoconf automake autotools-dev binutils cmake g++ gettext libbfio-dev libcurl4-openssl-dev libfmt-dev libgnutls28-dev libgsasl-dev libjsoncpp-dev libldap2-dev libmariadb-dev libpam0g-dev libolecf-dev libpff-dev libsqlite3-dev libssl-dev libtinyxml2-dev libtool libxml2-dev libxxhash-dev libzstd-dev make m4 openssl php-dev pkg-config sed systemd uuid-dev zlib1g-dev
1822
version: 1.2
1923
- name: clone-gromox
2024
uses: actions/checkout@v3
@@ -30,10 +34,10 @@ jobs:
3034
path: libHX
3135
- name: buildall
3236
run: |
33-
lscpu -b --online --parse | grep -v '^#' | wc -l >/tmp/ncpus
34-
pushd vmime && cmake . -DVMIME_SENDMAIL_PATH:STRING="/usr/sbin/sendmail" -DVMIME_BUILD_SAMPLES:BOOL=OFF -DVMIME_HAVE_TLS_SUPPORT:BOOL=ON -DVMIME_BUILD_STATIC_LIBRARY:BOOL=OFF && make "-j$(cat /tmp/ncpus)" && sudo make install && popd
35-
pushd libHX && ./qconf && make "-j$(cat /tmp/ncpus)" && sudo make install && popd
37+
set -e
38+
pushd vmime && cmake . -DVMIME_SENDMAIL_PATH:STRING="/usr/sbin/sendmail" -DVMIME_BUILD_SAMPLES:BOOL=OFF -DVMIME_HAVE_TLS_SUPPORT:BOOL=ON -DVMIME_BUILD_STATIC_LIBRARY:BOOL=OFF && make "-j$(nproc)" && sudo make install && popd
39+
pushd libHX && ./qconf && make "-j$(nproc)" && sudo make install && popd
3640
./qconf
37-
LD_LIBRARY_PATH=/usr/local/lib make "-j$(cat /tmp/ncpus)"
41+
LD_LIBRARY_PATH=/usr/local/lib make "-j$(nproc)"
3842
LD_LIBRARY_PATH=/usr/local/lib make install DESTDIR="$PWD/rt" && rm -Rf rt
3943
make distclean

0 commit comments

Comments
 (0)