Skip to content

Commit a3da9e6

Browse files
committed
Merge branch '0.3.x' (hidden CI conflict)
2 parents b453ce6 + cd19864 commit a3da9e6

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

.github/workflows/build.yaml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
- gentoo/stage3:musl-hardened
3333
- gentoo/stage3:hardened
3434
- freebsd
35+
- freebsd:14.4
36+
- freebsd:14.4:aarch64
3537
config:
3638
- cmake_args: "-DENABLE_API=ON -DCMAKE_C_COMPILER=gcc"
3739
- cmake_args: "-DENABLE_API=ON -DCMAKE_C_COMPILER=clang"
@@ -43,16 +45,24 @@ jobs:
4345
- os: debian:oldstable
4446
config:
4547
cmake_args: "-DENABLE_API=ON -DCMAKE_C_COMPILER=clang"
48+
# CMake can't find Threads support using GCC
49+
- os: freebsd:14.4:aarch64
50+
config:
51+
cmake_args: "-DENABLE_API=ON -DCMAKE_C_COMPILER=gcc"
52+
- os: freebsd:14.4:aarch64
53+
config:
54+
cmake_args: "-DENABLE_API=ON -DCMAKE_C_COMPILER=gcc -DCMAKE_C_FLAGS=-DDATUM_API_FOR_UMBREL=ON"
55+
extra_cflags: "-DDATUM_API_FOR_UMBREL"
4656

4757
runs-on: ubuntu-latest
4858

4959
steps:
5060
- name: Checkout code
51-
uses: actions/checkout@v2
61+
uses: actions/checkout@v6
5262

5363
- name: Restore package cache
5464
if: startsWith(matrix.os, 'gentoo/')
55-
uses: actions/cache/restore@v4
65+
uses: actions/cache/restore@v5
5666
with:
5767
path: pkg-cache
5868
key: never-exists
@@ -113,12 +123,17 @@ jobs:
113123
}
114124
cache_cksum > /tmp/initial-pkg-cache.cksum
115125
126+
cat <<\EOF >>/etc/portage/make.conf
127+
EMERGE_DEFAULT_OPTS="$EMERGE_DEFAULT_OPTS --quiet-build y --tree"
128+
FETCHCOMMAND="$FETCHCOMMAND --progress=dot:giga" # assumes wget default
129+
EOF
130+
116131
emerge --sync --quiet || true # can fail if cache is recent enough
117132
else
118133
emerge --sync --quiet
119134
fi
120135
'
121-
INSTALL_CMD="emerge -1 sec-keys/openpgp-keys-gentoo-release && getuto && cat /etc/portage/make.conf && emerge -vuDtkg1 @world && USE='-httpsrr -perl -extra -static-analyzer compiler-rt -openmp sanitize -adns -alt-svc -ftp -hsts -http2 -http3 -imap -pop3 -progress-meter -psl -quic -curl_quic_openssl -smtp -tftp -websockets' emerge -vuDtkg1 --noreplace --jobs=\$(nproc) --buildpkg"
136+
INSTALL_CMD="emerge -1 sec-keys/openpgp-keys-gentoo-release && getuto && cat /etc/portage/make.conf && emerge -vuDkg1 @world && USE='-httpsrr -perl -extra -static-analyzer compiler-rt -openmp sanitize -adns -alt-svc -ftp -hsts -http2 -http3 -imap -pop3 -progress-meter -psl -quic -curl_quic_openssl -smtp -tftp -websockets' emerge -vuDkg1 --noreplace --jobs=\$(nproc) --buildpkg"
122137
PACKAGES="dev-vcs/git dev-build/cmake net-misc/curl dev-libs/jansson dev-libs/libsodium virtual/pkgconfig app-portage/gentoolkit"
123138
[[ "${{ matrix.os }}" =~ musl ]] && PACKAGES="$PACKAGES sys-libs/argp-standalone"
124139
PACKAGES_API="net-libs/libmicrohttpd"
@@ -183,7 +198,7 @@ jobs:
183198
184199
- name: Save package cache
185200
if: steps.docker-build.outputs.save_cache == 'true'
186-
uses: actions/cache/save@v4
201+
uses: actions/cache/save@v5
187202
with:
188203
path: pkg-cache
189204
key: ${{ matrix.os }}/pkg-cache/${{ matrix.config.cmake_args }}/${{ github.sha }}
@@ -192,6 +207,8 @@ jobs:
192207
if: startsWith(matrix.os, 'freebsd')
193208
uses: vmactions/freebsd-vm@v1
194209
with:
210+
release: ${{ contains(matrix.os, ':14.4') && '14.4' || '' }}
211+
arch: ${{ endsWith(matrix.os, ':aarch64') && 'aarch64' || '' }}
195212
prepare: |
196213
PACKAGES="git cmake pkgconf curl jansson libsodium libmicrohttpd argp-standalone libepoll-shim"
197214
if echo "${{ matrix.config.cmake_args }}" | grep -q "CMAKE_C_COMPILER=gcc"; then

0 commit comments

Comments
 (0)