From 02b22c7c88b663193262dc52f347ce9eac4a01c9 Mon Sep 17 00:00:00 2001 From: Brian Dashore Date: Thu, 21 Jul 2022 12:08:42 -0400 Subject: [PATCH] Add CircleCI configuration Temporarily used instead of Github actions since actions has no Xcode 14 access. Signed-off-by: kingbri --- .circleci/config.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..e5c7839 --- /dev/null +++ b/.circleci/config.yml @@ -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