Skip to content

Commit 9b6e05a

Browse files
committed
Adding a CI
1 parent c785971 commit 9b6e05a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: macos-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Select Xcode Version
18+
uses: maxim-lobanov/setup-xcode@v1
19+
with:
20+
xcode-version: latest-stable
21+
22+
- name: Show eligible build destinations
23+
run: xcodebuild -showdestinations -scheme CodeScanner
24+
- name: Build and test ( mac Catalyst 12.0)
25+
run: xcodebuild test -scheme CodeScanner -destination 'platform=macOS,arch=x86_64,variant=Mac Catalyst'
26+
- name: Build and test ( iOS 15.0)
27+
run: xcodebuild test -scheme CodeScanner -destination 'platform=iOS Simulator,OS=15.0,name=iPhone 12 Pro'

0 commit comments

Comments
 (0)