Temporarily used instead of Github actions since actions has no Xcode 14 access. Signed-off-by: kingbri <bdashore3@gmail.com>
43 lines
1.8 KiB
YAML
43 lines
1.8 KiB
YAML
# 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
|