File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Xcode Build
2+
3+ on :
4+ push :
5+ branches : [ "main" ] # or "master" if your main branch is named master
6+ pull_request :
7+ branches : [ "main" ] # or "master"
8+
9+ jobs :
10+ build :
11+ runs-on : macos-latest # Use the latest macOS runner
12+
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v4 # Checks out your repository under $GITHUB_WORKSPACE
16+
17+ - name : Select Xcode version
18+ uses : maxim-lobanov/setup-xcode@v1
19+ with :
20+ xcode-version : ' latest' # or specify a version like '15.0' or '14.3.1'
21+
22+ - name : No extra dependencies - Proceed with build
23+ run : echo "No extra dependencies to install. Proceeding with Xcode build."
24+
25+ - name : Build Xcode project
26+ run : xcodebuild -project CapsLockSwitcher.xcodeproj -scheme CapsLockSwitcher -destination 'generic/platform=macOS' -configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
27+
28+ - name : Create App Archive (ZIP)
29+ run : |
30+ mkdir build
31+ cp -R "build/Release/CapsLockSwitcher.app" build/
32+ cd build
33+ zip -r CapsLockSwitcher.app.zip CapsLockSwitcher.app
34+ echo "App archive created: CapsLockSwitcher.app.zip"
35+
36+ - name : Upload Artifact
37+ uses : actions/upload-artifact@v3
38+ with :
39+ name : CapsLockSwitcher-app
40+ path : build/CapsLockSwitcher.app.zip
You can’t perform that action at this time.
0 commit comments