Skip to content

Commit

Permalink
ci: backporting ios 14
Browse files Browse the repository at this point in the history
Signed-off-by: 82Flex <82flex@gmail.com>
  • Loading branch information
Lessica committed Jan 13, 2024
1 parent 3382009 commit fd87424
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 3 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build-analyze-14.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Xcode - Build and Analyze

on:
push:
branches: [ "backport/ios-14" ]
pull_request:
branches: [ "backport/ios-14" ]

jobs:
build:
name: Build and analyse using xcodebuild command
runs-on: macos-13

steps:
- name: Setup Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 14.3.1

- name: Checkout
uses: actions/checkout@v3

- name: Build
run: |
xcodebuild clean build analyze -scheme Reveil -project Reveil.xcodeproj CODE_SIGNING_ALLOWED=NO | xcpretty && exit ${PIPESTATUS[0]}
57 changes: 57 additions & 0 deletions .github/workflows/build-archive-14.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Xcode - Build Archive

on:
push:
tags:
- 'v1.2.*'

env:
MARKETING_VERSION: 0.0.0
PATCH_VERSION: 0

jobs:
build:
name: Build sideloading package for TrollStore
runs-on: macos-13

steps:
- name: Setup Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 14.3.1

- name: Checkout
uses: actions/checkout@v3

- name: Update version strings
run: |
export PATCH_VERSION=$(echo "${GITHUB_REF#refs/tags/v}" | cut -d. -f3)
echo "PATCH_VERSION=${PATCH_VERSION}" >> $GITHUB_ENV
echo "MARKETING_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
xcrun agvtool new-version -all "${PATCH_VERSION}"
xcrun agvtool new-marketing-version "${GITHUB_REF#refs/tags/v}"
- name: Build helper
run: |
xcodebuild clean build archive -scheme ReveilHelper -project Reveil.xcodeproj -archivePath ReveilHelper.xcarchive CODE_SIGNING_ALLOWED=NO | xcpretty && exit ${PIPESTATUS[0]}
- name: Build
run: |
PATH=$PWD/ReveilHelper.xcarchive/Products/usr/local/bin:$PATH xcodebuild clean build archive -scheme Reveil -project Reveil.xcodeproj -sdk iphoneos -destination 'generic/platform=iOS' -archivePath Reveil CODE_SIGNING_ALLOWED=NO | xcpretty && exit ${PIPESTATUS[0]}
- name: Package for sideloading
run: |
cd Reveil.xcarchive/Products/Applications
codesign --remove-signature Reveil.app
cd -
cd Reveil.xcarchive/Products
mv Applications Payload
zip -qr Reveil_${{ env.MARKETING_VERSION }}.tipa Payload
cd -
mv Reveil.xcarchive/Products/Reveil_${{ env.MARKETING_VERSION }}.tipa .
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Reveil_${{ env.MARKETING_VERSION }}
path: Reveil.xcarchive
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Reveil

[![Build and Analyze](https://github.com/Lessica/ReveilApp/actions/workflows/build-analyze.yml/badge.svg)](https://github.com/Lessica/ReveilApp/actions/workflows/build-analyze.yml) [![Build Archive](https://github.com/Lessica/ReveilApp/actions/workflows/build-archive.yml/badge.svg)](https://github.com/Lessica/ReveilApp/actions/workflows/build-archive.yml) ![Latest Release](https://img.shields.io/github/v/release/Lessica/Reveil)
[![Build and Analyze](https://github.com/Lessica/ReveilApp/actions/workflows/build-analyze-14.yml/badge.svg)](https://github.com/Lessica/ReveilApp/actions/workflows/build-analyze-14.yml) [![Build Archive](https://github.com/Lessica/ReveilApp/actions/workflows/build-archive-14.yml/badge.svg)](https://github.com/Lessica/ReveilApp/actions/workflows/build-archive-14.yml) ![Latest Release](https://img.shields.io/github/v/release/Lessica/Reveil)
![MIT License](https://img.shields.io/github/license/Lessica/Reveil)

Reveil is a replication of [Unveil](https://unveilapp.com) in pure SwiftUI.
Expand Down
4 changes: 2 additions & 2 deletions Reveil.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@
CODE_SIGN_ENTITLEMENTS = Reveil/Reveil.entitlements;
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 9;
CURRENT_PROJECT_VERSION = 10;
DEVELOPMENT_ASSET_PATHS = "";
DEVELOPMENT_TEAM = GXZ23M5TP2;
"ENABLE_HARDENED_RUNTIME[sdk=macosx*]" = YES;
Expand Down Expand Up @@ -1342,7 +1342,7 @@
CODE_SIGN_ENTITLEMENTS = Reveil/Reveil.entitlements;
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 9;
CURRENT_PROJECT_VERSION = 10;
DEVELOPMENT_ASSET_PATHS = "";
DEVELOPMENT_TEAM = GXZ23M5TP2;
"ENABLE_HARDENED_RUNTIME[sdk=macosx*]" = YES;
Expand Down

0 comments on commit fd87424

Please sign in to comment.