mirror of
https://github.com/Ferrite-iOS/Ferrite.git
synced 2026-01-11 20:10:27 +00:00
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:
parent
ffa5e0d4d9
commit
02b22c7c88
1 changed files with 43 additions and 0 deletions
43
.circleci/config.yml
Normal file
43
.circleci/config.yml
Normal 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
|
||||
Loading…
Reference in a new issue