Skip to content

Commit

Permalink
feat: add build-app CI (#100)
Browse files Browse the repository at this point in the history
* feat: add build-app CI

* fix: use https for SwiftLint instead of ssh

* fix: dont specify arch

* fix: remove development team

* feat: add xcbeautify

* fix: remove #Preview to build with Xcode 14

* fix: use latest version

* feat: add concurrency canceling

* fix: correctly pass error

* feat: use macos 13, and Xcode 15
  • Loading branch information
okwasniewski authored Nov 20, 2023
1 parent e177eec commit 7393489
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 7 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build MiniSim

on:
pull_request:
branches:
- main
push:
branches:
- main

concurrency:
group: ${{ github.ref }}-build
cancel-in-progress: true

jobs:
build:
runs-on: macos-13

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15

- name: Install XCBeautify
run: brew install xcbeautify

- name: Build
run: set -o pipefail && xcodebuild -scheme MiniSim -destination 'platform=macOS' -skipPackagePluginValidation build | xcbeautify
4 changes: 2 additions & 2 deletions MiniSim.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -673,13 +673,13 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = MiniSim/MiniSim.entitlements;
CODE_SIGN_IDENTITY = "-";
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 13;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"MiniSim/Preview Content\"";
DEVELOPMENT_TEAM = Z3M9P6G4WY;
DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
{
"identity" : "swiftlint",
"kind" : "remoteSourceControl",
"location" : "git@github.com:realm/SwiftLint.git",
"location" : "https://github.com/realm/SwiftLint.git",
"state" : {
"revision" : "6d2e58271ebc14c37bf76d7c9f4082cc15bad718",
"version" : "0.53.0"
Expand Down
4 changes: 0 additions & 4 deletions MiniSim/Views/Onboarding/SetupPreferences.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,3 @@ struct SetupPreferences: View {
}
}
}

#Preview {
SetupPreferences {}
}

0 comments on commit 7393489

Please sign in to comment.