-
Notifications
You must be signed in to change notification settings - Fork 6
34 lines (30 loc) · 1.21 KB
/
objective-c-xcode.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Xcode - Build and Analyze
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Build and analyse default scheme using xcodebuild command
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
xcodebuild clean build analyze -project "GLLara.xcodeproj" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]}
- name: Archive
run: |
xcodebuild archive -project "GLLara.xcodeproj" -scheme "GLLara" -archivePath GLLaraNightly.xcarchive CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]}
- name: Export
run: |
xcodebuild -project "GLLara.xcodeproj" -exportArchive -archivePath GLLaraNightly.xcarchive -exportPath GLLaraNightly -exportOptionsPlist .github/exportGithub.plist CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]}
- name: Tar files
run: tar -cvf GLLaraNightly.tar GLLaraNightly
- name: Upload
uses: actions/upload-artifact@v3
with:
name: GLLaraNightly
path: |
GLLaraNightly.tar