2024-04-01 16:08:07 +00:00
|
|
|
# This config was automatically generated from your source code
|
|
|
|
# Stacks detected: cicd:github-actions:.github/workflows,deps:python:docs,deps:ruby:docs,deps:rust:src/third-party/prqlc-c
|
|
|
|
version: 2.1
|
|
|
|
orbs:
|
|
|
|
macos: circleci/macos@2.2.0
|
|
|
|
jobs:
|
|
|
|
macos-apple-clang:
|
|
|
|
macos:
|
2024-04-01 16:16:14 +00:00
|
|
|
xcode: 14.2.0
|
2024-04-01 16:34:13 +00:00
|
|
|
resource_class: macos.m1.medium.gen1
|
2024-04-01 16:08:07 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: brew install pcre2 sqlite ncurses xz zstd readline libarchive curl autoconf automake
|
|
|
|
- run: ./autogen.sh
|
|
|
|
- run: >-
|
2024-04-01 16:49:23 +00:00
|
|
|
./configure \
|
2024-04-01 16:59:32 +00:00
|
|
|
--with-libcurl=$(brew --prefix curl) \
|
2024-04-01 16:08:07 +00:00
|
|
|
--with-pcre2=$(brew --prefix pcre2) \
|
|
|
|
--with-sqlite3=$(brew --prefix sqlite3) \
|
|
|
|
"CXXFLAGS=-I$(brew --prefix ncurses)/include -g2 -O2" \
|
|
|
|
'CFLAGS=-O2 -g2' \
|
2024-04-01 16:38:08 +00:00
|
|
|
"LDFLAGS=-L$(brew --prefix ncurses)/lib -L$(brew --prefix xz)/lib -L$(brew --prefix lz4)/lib -L$(brew --prefix zstd)/lib/" \
|
2024-04-01 16:08:07 +00:00
|
|
|
--with-readline=$(brew --prefix readline) \
|
|
|
|
--with-libarchive=$(brew --prefix libarchive) \
|
2024-04-01 16:49:23 +00:00
|
|
|
|| cat config.log
|
2024-04-01 17:11:56 +00:00
|
|
|
- run: make -j2 || true
|
|
|
|
- run: env DUMP_CRASH=1 src/lnav -V
|
2024-04-01 21:08:19 +00:00
|
|
|
- run: make check -j2 || (test -e test/test-suite.log && cat test/test-suite.log && false)
|
2024-04-01 16:08:07 +00:00
|
|
|
workflows:
|
|
|
|
build-and-test:
|
|
|
|
jobs:
|
|
|
|
- macos-apple-clang
|