Skip to content

Commit 6202162

Browse files
committed
migrate Cirrus CI to CircleCI
1 parent bd08cf4 commit 6202162

2 files changed

Lines changed: 86 additions & 41 deletions

File tree

.circleci/config.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,82 @@ jobs:
226226
when: always
227227
- run: /root/.local/bin/meson test -C build --num-processes 5 --print-errorlogs
228228

229+
alpine: # (musl + GCC + SIMDE_NO_NATIVE)
230+
resource_class: large
231+
docker:
232+
- image: alpine:latest
233+
auth:
234+
username: $DOCKERHUB_USERNAME
235+
password: $DOCKERHUB_PASSWORD
236+
environment:
237+
CC: gcc
238+
CXX: g++
239+
steps:
240+
- run: apk add --no-cache build-base meson ninja python3 ccache
241+
- checkout
242+
- restore_cache:
243+
keys:
244+
- ccache-{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}
245+
- ccache-{{ .Environment.CIRCLE_JOB }}-master
246+
- ccache-{{ .Environment.CIRCLE_JOB }}
247+
- run:
248+
name: System Information
249+
command: cat /proc/cpuinfo /proc/meminfo
250+
- run:
251+
command: |
252+
ccache --set-config=max_size='500M'
253+
ccache --set-config=compression=true
254+
ccache -p
255+
ccache -z
256+
- run: |
257+
export PATH=/usr/lib/ccache:${PATH}
258+
meson setup build -Dc_args="-DSIMDE_NO_NATIVE -Wextra -Werror" -Dcpp_args="-DSIMDE_NO_NATIVE -Wextra -Werror"
259+
meson compile -C build --verbose -j 5
260+
- run: /usr/bin/ccache -s
261+
- save_cache:
262+
key: 'ccache-{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}-{{ epoch }}'
263+
paths: [ "/root/.cache/ccache" ]
264+
when: always
265+
- run: meson test -C build --num-processes 5 --print-errorlogs
266+
sanitizers:
267+
resource_class: large
268+
docker:
269+
- image: debian:trixie-slim
270+
auth:
271+
username: $DOCKERHUB_USERNAME
272+
password: $DOCKERHUB_PASSWORD
273+
environment:
274+
CC: clang-17
275+
CXX: clang++-17
276+
steps:
277+
- run: apt-get update && apt-get install -y ninja-build ninja-build pipx python3-setuptools python3-wheel gcovr clang-17 ccache
278+
- checkout
279+
- restore_cache:
280+
keys:
281+
- ccache-{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}
282+
- ccache-{{ .Environment.CIRCLE_JOB }}-master
283+
- ccache-{{ .Environment.CIRCLE_JOB }}
284+
- run:
285+
name: System Information
286+
command: cat /proc/cpuinfo /proc/meminfo
287+
- run: pipx install meson==0.64.0
288+
- run:
289+
command: |
290+
ccache --set-config=max_size='500M'
291+
ccache --set-config=compression=true
292+
ccache -p
293+
ccache -z
294+
- run: |
295+
export PATH=/usr/lib/ccache:${PATH}
296+
/root/.local/bin/meson setup build -Db_coverage=true -Db_sanitize=address,undefined -Db_lundef=false
297+
/root/.local/bin/meson compile -C build --verbose -j 5
298+
- run: /usr/bin/ccache -s
299+
- save_cache:
300+
key: 'ccache-{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}-{{ epoch }}'
301+
paths: [ "/root/.cache/ccache" ]
302+
when: always
303+
- run: /root/.local/bin/meson test -C build --num-processes 5 --print-errorlogs
304+
229305

230306
workflows:
231307
version: 2
@@ -261,3 +337,13 @@ workflows:
261337
branches:
262338
ignore:
263339
- /^ci/(?!circleci).*$/
340+
- alpine:
341+
filters:
342+
branches:
343+
ignore:
344+
- /^ci/(?!circleci).*$/
345+
- sanitizers:
346+
filters:
347+
branches:
348+
ignore:
349+
- /^ci/(?!circleci).*$/

.cirrus.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)