Add CircleCI configuration

Temporarily used instead of Github actions since actions
has no Xcode 14 access.

Signed-off-by: kingbri <bdashore3@gmail.com>
This commit is contained in:
Brian Dashore 2022-07-21 12:08:42 -04:00 committed by kingbri
parent ffa5e0d4d9
commit 02b22c7c88

43
.circleci/config.yml Normal file
View file

@ -0,0 +1,43 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/2.0/configuration-reference
# For a detailed guide to building and testing on iOS, read the docs:
# https://circleci.com/docs/2.0/testing-ios/
version: 2.1
# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs:
build:
# 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: 14.0.0 # Specify the Xcode version to use
# Add steps to the job
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
steps:
- checkout
- run:
name: Build
command: xcodebuild -scheme Ferrite -configuration Release archive -archivePath build/Ferrite.xcarchive CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
- run:
name: Package IPA
command: |
mkdir Payload
cp -r build/Ferrite.xcarchive/Products/Applications/Ferrite.app Payload
zip -r Ferrite.ipa Payload
zip Ferrite-iOS_nightly-$(echo ${CIRCLE_SHA1:0:7}).zip Ferrite.ipa
mkdir artifacts
mv Ferrite-iOS_nightly-$(echo ${CIRCLE_SHA1:0:7}).zip artifacts
- store_artifacts:
path: artifacts
# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
workflows:
nightly_ipa: # This is the name of the workflow, feel free to change it to better match your workflow.
# Inside the workflow, you define the jobs you want to run.
jobs:
- build:
filters:
branches:
only: default