Skip to content

Commit

Permalink
Add CI workflow for building the app
Browse files Browse the repository at this point in the history
  • Loading branch information
jarne committed Mar 1, 2024
1 parent 4580662 commit 2eb7d62
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build macOS app
on: [push]
jobs:
build:
name: Build Xcode app project
runs-on: macos-latest
env:
APP_NAME: Commandoak
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Select Xcode version
run: sudo xcode-select --switch /Applications/Xcode_15.2.app

- name: Build macOS app
run: |
xcodebuild \
-project ${{ env.APP_NAME }}.xcodeproj \
-scheme ${{ env.APP_NAME }} \
-configuration Release \
-sdk macosx \
archive -archivePath build/${{ env.APP_NAME }}.xcarchive
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.APP_NAME }}
path: build/${{ env.APP_NAME }}.xcarchive
77 changes: 77 additions & 0 deletions Commandoak.xcodeproj/xcshareddata/xcschemes/Commandoak.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1520"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8B50B1E22B8B8084006CBF57"
BuildableName = "Commandoak.app"
BlueprintName = "Commandoak"
ReferencedContainer = "container:Commandoak.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8B50B1E22B8B8084006CBF57"
BuildableName = "Commandoak.app"
BlueprintName = "Commandoak"
ReferencedContainer = "container:Commandoak.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8B50B1E22B8B8084006CBF57"
BuildableName = "Commandoak.app"
BlueprintName = "Commandoak"
ReferencedContainer = "container:Commandoak.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

0 comments on commit 2eb7d62

Please sign in to comment.