Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 8 additions & 29 deletions .github/workflows/build_ipa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ name: Build Debug IPA

on:
push:
branches: [ "main", "semi-rewrite" ]
branches: [ "main" ]
pull_request:
branches: [ "main", "semi-rewrite" ]
branches: [ "main" ]
workflow_dispatch:

permissions:
contents: write
contents: read

jobs:
build_and_release:
name: Build & Release IPA
runs-on: macos-latest
build:
name: Build IPA
runs-on: macos-latest
env:
UPLOAD_IPA: ${{ vars.UPLOAD_IPA || 'true' }}

Expand All @@ -24,8 +24,8 @@ jobs:
- name: 2. Configure Xcode Environment
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '26.0.1'
xcode-version: '26.0.1'

- name: 3. Compile Project Archive
run: |
xcodebuild clean archive \
Expand Down Expand Up @@ -57,24 +57,3 @@ jobs:
name: StikDebug-Debug.ipa
path: StikDebug.ipa
retention-days: 90

- name: 6. Extract Version Information
id: version
run: |
VERSION=$(sed -n 's/.*MARKETING_VERSION = \(.*\);/\1/p' StikDebug.xcodeproj/project.pbxproj | head -1 | xargs)
echo "app_version=$VERSION" >> "$GITHUB_OUTPUT"

- name: 7. Deploy to Nightly Release
if: env.UPLOAD_IPA == 'true' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main'
uses: softprops/action-gh-release@v2
with:
tag_name: Nightly
name: "Nightly Build - v${{ steps.version.outputs.app_version }}"
prerelease: true
body: |
Built from commit [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }})
target_commitish: ${{ github.sha }}
files: |
StikDebug.ipa
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11 changes: 11 additions & 0 deletions StikDebug.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
43953ACC2F9246C6006CB77E /* Localizable.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = 43953ACB2F9246C6006CB77E /* Localizable.xcstrings */; };
68D569BE2E1B415700A5BA36 /* CodeEditorView in Frameworks */ = {isa = PBXBuildFile; productRef = 68D569BD2E1B415700A5BA36 /* CodeEditorView */; };
68D569C02E1B415700A5BA36 /* LanguageSupport in Frameworks */ = {isa = PBXBuildFile; productRef = 68D569BF2E1B415700A5BA36 /* LanguageSupport */; };
/* End PBXBuildFile section */
Expand Down Expand Up @@ -42,6 +43,7 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
43953ACB2F9246C6006CB77E /* Localizable.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; name = Localizable.xcstrings; path = StikJIT/Assets.xcassets/Localizable.xcstrings; sourceTree = "<group>"; };
DC139F6D2DE97EA400F63846 /* WidgetKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WidgetKit.framework; path = System/Library/Frameworks/WidgetKit.framework; sourceTree = SDKROOT; };
DC139F6F2DE97EA400F63846 /* SwiftUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SwiftUI.framework; path = System/Library/Frameworks/SwiftUI.framework; sourceTree = SDKROOT; };
DC6F1D372D94EADD0071B2B6 /* StikDebug.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = StikDebug.app; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -110,6 +112,7 @@
DC6F1D2E2D94EADD0071B2B6 = {
isa = PBXGroup;
children = (
43953ACB2F9246C6006CB77E /* Localizable.xcstrings */,
DC6F1D392D94EADD0071B2B6 /* StikJIT */,
DC6F1D4B2D94EADF0071B2B6 /* StikJITTests */,
DC6F1D552D94EADF0071B2B6 /* StikJITUITests */,
Expand Down Expand Up @@ -243,6 +246,7 @@
Base,
es,
it,
"zh-Hans",
);
mainGroup = DC6F1D2E2D94EADD0071B2B6;
minimizedProjectReferenceProxies = 1;
Expand All @@ -266,6 +270,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
43953ACC2F9246C6006CB77E /* Localizable.xcstrings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -328,6 +333,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
Expand Down Expand Up @@ -379,7 +385,9 @@
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
STRING_CATALOG_GENERATE_SYMBOLS = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
Expand All @@ -389,6 +397,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
Expand Down Expand Up @@ -433,7 +442,9 @@
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
STRING_CATALOG_GENERATE_SYMBOLS = YES;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_EMIT_LOC_STRINGS = YES;
};
name = Release;
};
Expand Down
Loading