Skip to content

Commit

Permalink
Add .circleci/config.yml [#1419, #917, #869]
Browse files Browse the repository at this point in the history
  • Loading branch information
jimklimov committed May 10, 2022
1 parent 5353953 commit 151e78c
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Content modeled after settings tested with .travis.yml
# TODO: Implement a similar envvar-based matrix
# TODO: save_cache installed brew dependencies?
# TODO: Windows eventually?

# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs:
gnu17-clang-xcode12_5_1:
# Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
# See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor
macos:
xcode: 12.5.1 # indicate your selected version of Xcode
# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
steps:
- checkout
- run:
name: "homebrew"
command: |-
HOMEBREW_NO_AUTO_UPDATE=1; export HOMEBREW_NO_AUTO_UPDATE;
find /usr/local || true ;
brew install binutils ccache gd
- restore_cache:
keys:
- ccache-{{ .Branch }}-{{ arch }}
- ccache-master-{{ arch }}
- run:
name: "ci_build"
command: |-
BUILD_TYPE=default-all-errors \
CFLAGS="-std=gnu17" \
CXXFLAGS="-std=gnu++17" \
CC=clang CXX=clang++ \
./ci_build.sh
- save_cache:
paths:
- ~/.ccache
key: ccache-{{ .Branch }}-{{ arch }}

# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
workflows:
xcode-workflow:
jobs:
- gnu17-clang-xcode12_5_1

0 comments on commit 151e78c

Please sign in to comment.